Bläddra i källkod

crm同步优化

shenjingwei 6 månader sedan
förälder
incheckning
b5fc6c467b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/custom/common/crm/bean/core/CrmBase.java

+ 1 - 1
src/custom/common/crm/bean/core/CrmBase.java

@@ -162,7 +162,7 @@ public abstract class CrmBase extends BaseClass {
 
         public void suc() throws YosException {
             ArrayList<String> sqlist = new ArrayList<>();
-            sqlist.add("update crm_datasync set status=1,changedate=now() where ownertable='" + ownertable + "' and c=" + ownerid + " and id =" + id);
+            sqlist.add("update crm_datasync set status=1,changedate=now() where ownertable='" + ownertable + "' and ownerid=" + ownerid + " and id =" + id);
             sqlist.add("delete from crm_datasync where ownertable='" + ownertable + "' and ownerid=" + ownerid + " and id <" + id + " and status=0");
             dbConnect.runSqlUpdate(sqlist);
             logger.info(title + " ownertable=" + ownertable + " ownerid=" + ownerid + " 同步成功!");