Przeglądaj źródła

客户档案创建接口新增id返回

shenjingwei 1 miesiąc temu
rodzic
commit
163078af56

+ 2 - 1
src/custom/restcontroller/crm/agent/customer/Customer.java

@@ -121,6 +121,7 @@ public class Customer extends Controller {
                 insertSQL.setValue("source", "线索转化");// 客户来源
                 iscreatefollowup = true;
             }
+            sa_customersid = insertSQL.getUniqueid();
             sqldump.add(insertSQL);
         } else {
             UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sa_customers");
@@ -150,7 +151,7 @@ public class Customer extends Controller {
             addFollowUpLog.put("logtype", "转化");
             callApi(20221208100602L, 1, addFollowUpLog);
         }
-        return getSucReturnObject().toString();
+        return getSucReturnObject().setData(sa_customersid).toString();
     }
 
     @API(title = "美大CRM_经销商_客户档案订单列表查询", type = API.Type.Query, apiversion = R.ID2026030916334801.v1.class, params = {