|
|
@@ -162,14 +162,14 @@ 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 id =" + id);
|
|
|
- sqlist.add("delete from crm_datasync where ownertable='" + ownertable + "' and id <" + id + " and status=0");
|
|
|
+ sqlist.add("update crm_datasync set status=1,changedate=now() where ownertable='" + ownertable + "' and c=" + 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 + " 同步成功!");
|
|
|
}
|
|
|
|
|
|
public void del() throws YosException {
|
|
|
- dbConnect.runSqlUpdate("delete from crm_datasync where ownertable='" + ownertable + "'and id<=" + id + " and status=0");
|
|
|
+ dbConnect.runSqlUpdate("delete from crm_datasync where ownertable='" + ownertable + "' and ownerid=" + ownerid + " and id<=" + id + " and status=0");
|
|
|
logger.error(title + " ownertable=" + ownertable + " ownerid=" + ownerid + " 数据已不存在!");
|
|
|
}
|
|
|
|