审核订单取消申请接口修改
parent
43f1ad5e6e
commit
bdcd7f0769
|
|
@ -16,7 +16,6 @@ import com.jfinal.log.Log;
|
|||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.IAtom;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
|
|
@ -335,7 +334,7 @@ public class SyncTaskService {
|
|||
}
|
||||
}
|
||||
|
||||
// list = listFilter(tablename, list);
|
||||
list = listFilter(tablename, list);
|
||||
// if (list.isEmpty()) {
|
||||
// continue;
|
||||
// }
|
||||
|
|
@ -578,6 +577,13 @@ public class SyncTaskService {
|
|||
// 过滤新增数据
|
||||
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<>();
|
||||
if ("order_temp".equals(tablename)) {
|
||||
// sn
|
||||
|
|
@ -620,11 +626,11 @@ public class SyncTaskService {
|
|||
}
|
||||
}
|
||||
|
||||
if (CollectionUtils.isNotEmpty(removeList)) {
|
||||
log.debug("新增条数" + list.size());
|
||||
list.removeAll(removeList);
|
||||
log.debug("删除后条数" + list.size());
|
||||
}
|
||||
// if (CollectionUtils.isNotEmpty(removeList)) {
|
||||
// log.debug("新增条数" + list.size());
|
||||
// list.removeAll(removeList);
|
||||
// log.debug("删除后条数" + list.size());
|
||||
// }
|
||||
|
||||
return list;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue