From 3bfa0da9a8d950af4b045831fe733756ce78b902 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Mon, 22 Jan 2024 19:44:00 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9F=A5=E8=AF=A2=E5=BA=93=E5=AD=98=E5=93=81?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=BA=93=E4=BD=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DistributionStockListServiceImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java index ba0f8153e..9dc9f9495 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java @@ -465,6 +465,17 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl listAllocation(IPage page, Map distributionStockList) { DistributionStockListEntity distributionStockListEntity = JSONObject.parseObject(JSONObject.toJSONString(distributionStockList), DistributionStockListEntity.class); IPage pageList = null; + Long marketId = distributionStockListEntity.getMarketId(); + Long materialId = distributionStockListEntity.getMaterialId(); + String incomingBatch = distributionStockListEntity.getIncomingBatch(); + Long warehouseId = distributionStockListEntity.getWarehouseId(); + + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("market_id",marketId) + .eq("material_id",materialId) + .eq("incomingBatch",incomingBatch) + .eq("warehouse_id",warehouseId); + distributionStockListEntity = getOne(queryWrapper); if(Objects.isNull(distributionStockListEntity)){ log.warn("##################listAllocation: 库存品信息不存在");