diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownTypeServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownTypeServiceImpl.java index 81f80109c..20a64cf2d 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownTypeServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownTypeServiceImpl.java @@ -2193,8 +2193,14 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImplstockListEntity.getQuantityStock()){ + Integer totalNum = 0 ; + List updownGoodsByStock = warehouseUpdownGoodsService.getUpdownGoodsByStock(marketId, materialCode, incomingBatch,warehouseId); + List trayGoodsByStock = warehouseTrayGoodsService.getTrayGoodsByStockNoAllocationId(marketId, materialCode, incomingBatch,warehouseId); + updownGoodsByStock.addAll(trayGoodsByStock); + for (PositionVO positionVO:updownGoodsByStock){ + totalNum = totalNum + positionVO.getNum(); + } + if (totalNum+enterNum>stockListEntity.getQuantityStock()){ stringBuffer.append("{").append(materialCode).append("},"); continue; }