|
|
|
@ -252,7 +252,7 @@ public class WarehouseRetentionRecordServiceImpl extends BaseServiceImpl<Warehou
|
|
|
|
|
.eq(WarehouseRetentionScanEntity::getDeliveryId, warehouseRetentionScanDTOS.getDeliveryId()) |
|
|
|
|
); |
|
|
|
|
AtomicBoolean saveFlah = new AtomicBoolean(false); |
|
|
|
|
if (Func.isNotEmpty(retentionScanEntityList)) { |
|
|
|
|
if (Func.isNotEmpty(warehouseRetentionScanDTOList)) { |
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
Map<Long, WarehouseRetentionScanEntity> retentionPackageMap = retentionScanEntityList.stream().collect(Collectors.toMap(WarehouseRetentionScanEntity::getOrderPackageId, Function.identity(), (k1, k2) -> k2)); |
|
|
|
|
warehouseRetentionScanDTOList.forEach(rs -> { |
|
|
|
@ -291,15 +291,14 @@ public class WarehouseRetentionRecordServiceImpl extends BaseServiceImpl<Warehou
|
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
log.error(">>>>> rs.getConditions()={}", rs.getConditions()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
//统计该滞留任务的包件数量
|
|
|
|
|
int retentionTotal = warehouseRetentionScanService.list(Wrappers.<WarehouseRetentionScanEntity>query().lambda() |
|
|
|
|
.eq(WarehouseRetentionScanEntity::getDeliveryId, warehouseRetentionScanDTOS.getDeliveryId()) |
|
|
|
|
.eq(WarehouseRetentionScanEntity::getRefId, warehouseRetentionScanDTOS.getId())).stream().mapToInt(WarehouseRetentionScanEntity::getRetentionQuantity).sum(); |
|
|
|
|
.eq(WarehouseRetentionScanEntity::getDeliveryId, warehouseRetentionScanDTOS.getDeliveryId())).stream().mapToInt(WarehouseRetentionScanEntity::getRetentionQuantity) |
|
|
|
|
.sum(); |
|
|
|
|
if (saveFlah.get()) { |
|
|
|
|
return Resp.scanSuccess("操作成功", "共计滞留" + retentionTotal + "件"); |
|
|
|
|
} else { |
|
|
|
|