审核订单取消申请接口修改

dev
徐杰盟 2024-04-17 11:31:59 +08:00
parent ceb127f425
commit f64b33aacf
1 changed files with 5 additions and 20 deletions

View File

@ -16,6 +16,7 @@ import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.IAtom;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.redis.Redis;
import org.apache.commons.collections4.CollectionUtils;
import java.math.BigDecimal;
@ -587,11 +588,7 @@ public class SyncTaskService {
Record first = Db.findFirst("select * from " + tablename + " where sn = ?", sn);
if (first != null ) {
log.info("===============================================");
log.info("主键冲突");
log.info(tablename);
log.info(JSONObject.toJSONString(o));
log.info("===============================================");
Redis.use().set("主键冲突:" + tablename + ":" + sn, 0);
removeList.add(o);
}
@ -606,11 +603,7 @@ public class SyncTaskService {
if (first != null ) {
log.info("===============================================");
log.info("主键冲突");
log.info(tablename);
log.info(JSONObject.toJSONString(o));
log.info("===============================================");
Redis.use().set("主键冲突:" + tablename + ":" + id, 0);
removeList.add(o);
}
@ -625,11 +618,7 @@ public class SyncTaskService {
if (first != null ) {
log.info("===============================================");
log.info("主键冲突");
log.info(tablename);
log.info(JSONObject.toJSONString(o));
log.info("===============================================");
Redis.use().set("主键冲突:" + tablename + ":" + id, 0);
removeList.add(o);
}
@ -643,11 +632,7 @@ public class SyncTaskService {
Record first = Db.findFirst("select * from " + tablename + " where id = ?", id);
if (first != null ) {
log.info("===============================================");
log.info("主键冲突");
log.info(tablename);
log.info(JSONObject.toJSONString(o));
log.info("===============================================");
Redis.use().set("主键冲突:" + tablename + ":" + id, 0);
removeList.add(o);
}