审核订单取消申请接口修改
parent
cefb7219a9
commit
453b36e775
|
|
@ -640,6 +640,20 @@ public class SyncTaskService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("modify_log".equals(tablename)) {
|
||||||
|
// id
|
||||||
|
for (Record o : list) {
|
||||||
|
String id = o.getStr("id");
|
||||||
|
Record first = Db.findFirst("select * from " + tablename + " where id = ?", id);
|
||||||
|
if (first != null ) {
|
||||||
|
|
||||||
|
Redis.use().set(Config.dbprop.get("redis.basekey") + Const.REDIS_SEPARATE+"主键冲突:" + tablename + ":" + id, JSONObject.toJSONString(o));
|
||||||
|
|
||||||
|
removeList.add(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(removeList)) {
|
if (CollectionUtils.isNotEmpty(removeList)) {
|
||||||
list.removeAll(removeList);
|
list.removeAll(removeList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue