From a6b31188a2afd5e7ceb79bd481a70cc1e4737fb8 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Tue, 17 Oct 2023 20:31:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=9B=98=E7=82=B9=E4=BB=BB=E5=8A=A1=E5=90=88?= =?UTF-8?q?=E5=90=8C=E5=8F=B7=E7=9B=98=E7=82=B9=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/warehouse/service/impl/TaskQuestServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java index 84ec36f1a..b5afb5def 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/TaskQuestServiceImpl.java @@ -240,15 +240,15 @@ public class TaskQuestServiceImpl extends BaseServiceImpl zeroQuestDetailEntities = questDetailMap.get(2); List inventoryQuestDetailEntities = questDetailMap.get(3); if (Func.isNotEmpty(questDetailEntities)){ - Map> orderMap = questDetailEntities.stream().collect(Collectors.groupingBy(QuestDetailEntity::getOrderId)); + Map> orderMap = questDetailEntities.stream().collect(Collectors.groupingBy(QuestDetailEntity::getOrderCode)); orderMap.forEach((k,v)->{ - DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findEntityByStockArticleId(k); + DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findStockArticleByOrderCodeAndWarehouseId(k,taskSearchDTO.getWarehouseId()); List detailEntities = orderMap.get(k); TaskContractVO taskContractVO = new TaskContractVO(); taskContractVO.setIsInventory(0); taskContractVO.setIsZero(0); taskContractVO.setOrderCode(detailEntities.get(0).getOrderCode()); - taskContractVO.setOrderId(k); + taskContractVO.setOrderId(detailEntities.get(0).getOrderId()); taskContractVO.setTotal(detailEntities.stream().mapToInt(QuestDetailEntity::getStockNum).sum()); taskContractVO.setZktotal(detailEntities.stream().mapToInt(QuestDetailEntity::getStockNum).sum()); taskContractVO.setUnTotal(detailEntities.stream().filter(q->Func.equals(q.getQuestStatus(),1)).mapToInt(QuestDetailEntity::getStockNum).sum());