Przeglądaj źródła

crm网销订单状态变更为标准订单;客户档案新增是否网销字段

shenjingwei 4 miesięcy temu
rodzic
commit
22516bbd6f

+ 2 - 0
src/custom/common/crm/bean/customer.java

@@ -51,6 +51,7 @@ public class customer extends CrmBase {
                     String fprovince = jsonObject.getString("fprovince");
                     String fcity = jsonObject.getString("fcity");
                     String fcounty = jsonObject.getString("fcounty");
+                    boolean fisonline_join = jsonObject.getBooleanValue("fisonline_join");
 
                     if (agentRowsMap.containsKey(fagent_num_created)) {
                         if (dbConnect.runSqlQuery("select * from sa_customers where sa_customersid=" + cid).isEmpty()) {
@@ -84,6 +85,7 @@ public class customer extends CrmBase {
                             }
                             insertSQL.setValue("address", fcommunity);
                             insertSQL.setValue("custnum", fcustom_num);
+                            insertSQL.setValue("isonline_join", fisonline_join);
                             insertSQL.insert();
                         } else {
                             UpdateSQL updateSQL = SQLFactory.createUpdateSQL(dbConnect, "sa_customers");

+ 1 - 1
src/custom/common/crm/bean/saorder.java

@@ -77,7 +77,7 @@ public class saorder extends CrmBase {
                 orderInsert.setValue("sys_enterpriseid", sys_enterpriseid);
                 orderInsert.setValue("pay_enterpriseid", sys_enterpriseid);
                 orderInsert.setValue("sa_accountclassid", accountclassRows.get(0).getLong("sa_accountclassid"));
-                orderInsert.setValue("type", crmOrder.getStringValue("ftype"));
+                orderInsert.setValue("type", "标准订单");
                 if (financeRows.isNotEmpty()) {
                     orderInsert.setValue("sys_enterprise_financeid", financeRows.get(0).getLong("sys_enterprise_financeid"));
                     orderInsert.setValue("invoicetaxno", financeRows.get(0).getString("taxno"));