From 26f045573ece25988032df1cf1a95c1140e4e203 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080> Date: Thu, 30 Nov 2023 10:56:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=98=E7=82=B9=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E6=97=A0=E6=95=B0=E6=8D=AE=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/warehouse/dto/TaskSearchDTO.java | 2 +- .../warehouse/mapper/TaskQuestMapper.java | 2 +- .../service/impl/TaskQuestServiceImpl.java | 34 +++++-------------- 3 files changed, 11 insertions(+), 27 deletions(-) diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/TaskSearchDTO.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/TaskSearchDTO.java index 4181d1a47..ea2cca650 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/TaskSearchDTO.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/dto/TaskSearchDTO.java @@ -122,7 +122,7 @@ public class TaskSearchDTO { /** * 在库盘点包件 */ - private List questDetailIds; + private List questDetailIds; /** * 当前仓库id diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.java index 8b649788e..260fc449a 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.java @@ -168,5 +168,5 @@ public interface TaskQuestMapper extends BaseMapper { */ List selectContrastDataInfo(@Param("questNum")String questNum,@Param("param")QuestDetailEntity questDetail); - Integer deleteQuestChild(@Param("questNum")String questNum, @Param("questDetailId")String i); + Integer deleteQuestChild(@Param("questNum")String questNum, @Param("questDetailId")Long i); } 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 ed8d7504b..a3310ab10 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 @@ -706,23 +706,12 @@ public class TaskQuestServiceImpl extends BaseServiceImpl ids = null; - if(ObjectUtils.isNotNull(taskSearchDTO.getQuestDetailIds())){ - - for (String questDetailId : taskSearchDTO.getQuestDetailIds()) { - if(ObjectUtils.isNull(ids)){ - ids = new ArrayList<>(); - } - ids.add(Long.parseLong(questDetailId)); - } - } - List questDetailList = baseMapper.selectTaskInfoForIds(questNum, questDetailer,ids); - log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> questDetailList {}",questDetailList); // 在库包件状态修改 if(ObjectUtils.isNotNull(taskSearchDTO.getQuestDetailIds()) && ObjectUtils.isNotNull(taskSearchDTO.getQuestDetailIds().get(0)) ){ + QuestDetailEntity quest = new QuestDetailEntity(); + List questDetailList = baseMapper.selectTaskInfoForIds(questNum, quest,taskSearchDTO.getQuestDetailIds()); + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> tag {}",1); List list = new ArrayList<>(); AtomicBoolean s = new AtomicBoolean(false); @@ -807,12 +796,12 @@ public class TaskQuestServiceImpl extends BaseServiceImpl childList = new ArrayList<>(); - childList.add(addQuestDetailChild(stockNum,"10",i.getId(),warehouseId,questNum)); - childList.add(addQuestDetailChild(wornNum,"20",i.getId(),warehouseId,questNum)); - childList.add(addQuestDetailChild(lossNum,"30",i.getId(),warehouseId,questNum)); - childList.add(addQuestDetailChild(noRepairNum,"40",i.getId(),warehouseId,questNum)); - childList.add(addQuestDetailChild(deliveNum,"50",i.getId(),warehouseId,questNum)); - childList.add(addQuestDetailChild(noReceivedNum,"60",i.getId(),warehouseId,questNum)); + childList.add(addQuestDetailChild(stockNum,"10",taskID,warehouseId,questNum)); + childList.add(addQuestDetailChild(wornNum,"20",taskID,warehouseId,questNum)); + childList.add(addQuestDetailChild(lossNum,"30",taskID,warehouseId,questNum)); + childList.add(addQuestDetailChild(noRepairNum,"40",taskID,warehouseId,questNum)); + childList.add(addQuestDetailChild(deliveNum,"50",taskID,warehouseId,questNum)); + childList.add(addQuestDetailChild(noReceivedNum,"60",taskID,warehouseId,questNum)); if(!childList.isEmpty()){ boolean b = childList.stream().anyMatch(ii -> ObjectUtils.isNull(ii.getId())); if(b){ @@ -2733,11 +2722,6 @@ public class TaskQuestServiceImpl extends BaseServiceImpl