|
|
|
@ -273,6 +273,9 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
|
|
|
|
|
codesList.forEach(invCountCodes -> {
|
|
|
|
|
if (invCountCodes.getProductId().equals(productId) && !verifyCodeExist(outOrderCodes, invCountCodes.getCode())) {
|
|
|
|
|
WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invCountCodes.getCode(), invCountCodes.getProductId());
|
|
|
|
|
int count = invCountCodesService.getActCount(warehouseEntity.getNameCode());
|
|
|
|
|
warehouseEntity.setCount(count);
|
|
|
|
|
warehouseEntity.setReCount(count);
|
|
|
|
|
inOrderCodes.add(warehouseEntity);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -282,6 +285,9 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
|
|
|
|
|
invProductDetailEntities.forEach(invProductDetailEntity -> {
|
|
|
|
|
if (!countCodes.contains(invProductDetailEntity.getOriginCode()) && !verifyCodeExist(outOrderCodes, invProductDetailEntity.getCode())) {
|
|
|
|
|
WarehouseEntity warehouseEntity = buildWarehouse(invCountOrder, invProductDetailEntity.getCode(), invProductDetailEntity.getProductIdFk());
|
|
|
|
|
int count = invCountCodesService.getActCount(warehouseEntity.getNameCode());
|
|
|
|
|
warehouseEntity.setCount(count);
|
|
|
|
|
warehouseEntity.setReCount(count);
|
|
|
|
|
outOrderCodes.add(warehouseEntity);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -366,8 +372,6 @@ public class InvCountOrderServiceImpl implements InvCountOrderService {
|
|
|
|
|
warehouseEntity.setExpireDate(udi.getExpireDate());
|
|
|
|
|
warehouseEntity.setSerialNo(udi.getSerialNo());
|
|
|
|
|
warehouseEntity.setNameCode(udi.getUdi());
|
|
|
|
|
warehouseEntity.setCount(1);
|
|
|
|
|
warehouseEntity.setReCount(1);
|
|
|
|
|
return warehouseEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|