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

dev
徐杰盟 2024-04-17 10:25:39 +08:00
parent 43f1ad5e6e
commit bdcd7f0769
1 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,6 @@ import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.Db; import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.IAtom; import com.jfinal.plugin.activerecord.IAtom;
import com.jfinal.plugin.activerecord.Record; import com.jfinal.plugin.activerecord.Record;
import org.apache.commons.collections4.CollectionUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.SQLException; import java.sql.SQLException;
@ -335,7 +334,7 @@ public class SyncTaskService {
} }
} }
// list = listFilter(tablename, list); list = listFilter(tablename, list);
// if (list.isEmpty()) { // if (list.isEmpty()) {
// continue; // continue;
// } // }
@ -578,6 +577,13 @@ public class SyncTaskService {
// 过滤新增数据 // 过滤新增数据
private List<Record> listFilter(String tablename, List<Record> list) { private List<Record> listFilter(String tablename, List<Record> list) {
System.out.println();
System.out.println();
System.out.println(tablename);
System.out.println(JSONObject.toJSONString(list));
System.out.println();
System.out.println();
List<Record> removeList = new ArrayList<>(); List<Record> removeList = new ArrayList<>();
if ("order_temp".equals(tablename)) { if ("order_temp".equals(tablename)) {
// sn // sn
@ -620,11 +626,11 @@ public class SyncTaskService {
} }
} }
if (CollectionUtils.isNotEmpty(removeList)) { // if (CollectionUtils.isNotEmpty(removeList)) {
log.debug("新增条数" + list.size()); // log.debug("新增条数" + list.size());
list.removeAll(removeList); // list.removeAll(removeList);
log.debug("删除后条数" + list.size()); // log.debug("删除后条数" + list.size());
} // }
return list; return list;
} }