|
|
|
@ -147,7 +147,7 @@ public class FactoryXxlJob {
|
|
|
|
|
//XxlJobLogger.log("日志对象 {}", orderLogEntity);
|
|
|
|
|
Map<String, List> map = orderService.dataRelative(orderLogEntity); |
|
|
|
|
List<StationOrderEntity> dataList = map.get(StationOrderEntity.class.getName()); |
|
|
|
|
if (dataList.size() == 0) { |
|
|
|
|
if (dataList.isEmpty()) { |
|
|
|
|
//XxlJobLogger.log("本次解析操作没有数据");
|
|
|
|
|
//更新数据库请求日志状态
|
|
|
|
|
orderLogEntity.setStatus(0); |
|
|
|
@ -175,6 +175,11 @@ public class FactoryXxlJob {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/*************** SNM 存在 相同的车次 多次推送 重复的包件的操作**************/ |
|
|
|
|
// 需要移除 当前合同号下的已经存在的包件
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataList.forEach(v -> { |
|
|
|
|
for (int i = 0; i < staorderPackagesEntityList.size(); i++) { |
|
|
|
|
if (staorderPackagesEntityList.get(i).getTcPoa014().equals(v.getTcWlb008())) { |
|
|
|
@ -184,7 +189,7 @@ public class FactoryXxlJob {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 插入数据库
|
|
|
|
|
if (staorderPackagesEntityList != null && staorderPackagesEntityList.size() != 0) { |
|
|
|
|
if (staorderPackagesEntityList != null && !staorderPackagesEntityList.isEmpty()) { |
|
|
|
|
//XxlJobLogger.log("保存对象StaorderPackagesEntity {}", staorderPackagesEntityList);
|
|
|
|
|
staorderPackagesService.saveBatch(staorderPackagesEntityList); |
|
|
|
|
} |
|
|
|
|