|
|
|
@ -13327,7 +13327,10 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int i= 0; |
|
|
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanEntity> carsLoadScanEntities = trunklineCarsLoadScanService.findUnloadNoDataList(loadId,warehouseId); |
|
|
|
|
if(CollUtil.isNotEmpty(carsLoadScanEntities)){ |
|
|
|
|
//把carsLoadScanEntities中所有元素的scanCode放入一个Set集合
|
|
|
|
|
Set<String> scanCodeSet = carsLoadScanEntities.stream().map(TrunklineCarsLoadScanEntity::getScanCode).collect(Collectors.toSet()); |
|
|
|
|
|
|
|
|
@ -13340,9 +13343,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
int packageBatchSize = 500; |
|
|
|
|
List<List<String>> orderPackageCodeGroups = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < scanCodeList.size(); i += packageBatchSize) { |
|
|
|
|
int endIndex = Math.min(i + packageBatchSize, scanCodeList.size()); |
|
|
|
|
orderPackageCodeGroups.add(scanCodeList.subList(i, endIndex)); |
|
|
|
|
for (int m = 0; m < scanCodeList.size(); m += packageBatchSize) { |
|
|
|
|
int endIndex = Math.min(m + packageBatchSize, scanCodeList.size()); |
|
|
|
|
orderPackageCodeGroups.add(scanCodeList.subList(m, endIndex)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
orderPackageCodeGroups.forEach(orderPackageCodeGroup -> { |
|
|
|
@ -13511,8 +13514,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
// trunklineCarsLoadScanService.updateBatchById(updateScanList);
|
|
|
|
|
|
|
|
|
|
int i= 0; |
|
|
|
|
|
|
|
|
|
//完结所有包件异常列表
|
|
|
|
|
if(CollUtil.isNotEmpty(orderPackageCodeSet)){ |
|
|
|
|
i = orderPackageCodeSet.size(); |
|
|
|
@ -13532,6 +13533,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseName, WorkNodeEnums.UNLOAD_INCOMING_WAREHOUSE.getCode(), content); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bladeRedis.del(key); |
|
|
|
|
return R.success("同步成功"+i+"条"); |
|
|
|
|