|
|
@ -5351,18 +5351,24 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
Map<Long, List<TrunklineScanZeroDetailVO>> mapByScanId = zeroDetailVOList.stream() |
|
|
|
Map<Long, List<TrunklineScanZeroDetailVO>> mapByScanId = zeroDetailVOList.stream() |
|
|
|
.collect(Collectors.groupingBy(TrunklineScanZeroDetailVO::getScanId)); |
|
|
|
.collect(Collectors.groupingBy(TrunklineScanZeroDetailVO::getScanId)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanEntity> updateList = new ArrayList<>(); |
|
|
|
carsLoadScanEntityList.forEach(carsLoadScanEntity -> { |
|
|
|
carsLoadScanEntityList.forEach(carsLoadScanEntity -> { |
|
|
|
|
|
|
|
|
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
|
|
|
|
|
|
|
|
List<TrunklineScanZeroDetailVO> list = mapByScanId.get(scanId); |
|
|
|
List<TrunklineScanZeroDetailVO> list = mapByScanId.get(scanId); |
|
|
|
|
|
|
|
TrunklineCarsLoadScanEntity updateEntity = new TrunklineCarsLoadScanEntity(); |
|
|
|
|
|
|
|
updateEntity.setId(scanId); |
|
|
|
|
|
|
|
updateEntity.setUnloadCheck(1); |
|
|
|
|
|
|
|
updateList.add(updateEntity); |
|
|
|
|
|
|
|
|
|
|
|
carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName,list,carsLoadScanEntity,carsLoadEntity); |
|
|
|
carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName,list,carsLoadScanEntity,carsLoadEntity); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(updateList)){ |
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateBatchById(updateList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return R.success("操作成功"); |
|
|
|
return R.success("操作成功"); |
|
|
|