diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/BasicDataApplication.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/BasicDataApplication.java index c98b3bd15..c0721789f 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/BasicDataApplication.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/BasicDataApplication.java @@ -4,13 +4,16 @@ package com.logpm.basicdata; import org.springblade.common.constant.ModuleNameConstant; import org.springblade.core.cloud.client.BladeCloudApplication; import org.springblade.core.launch.BladeApplication; +import org.springblade.core.transaction.annotation.SeataCloudApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; /** * Basic启动器 * * @author lmy */ -@BladeCloudApplication +@EnableFeignClients +@SeataCloudApplication public class BasicDataApplication { public static void main(String[] args) { diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/TrunkLineApplication.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/TrunkLineApplication.java index 5e3b60b60..17ee6821e 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/TrunkLineApplication.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/TrunkLineApplication.java @@ -20,13 +20,15 @@ import org.springblade.common.constant.ModuleNameConstant; import org.springblade.core.cloud.client.BladeCloudApplication; import org.springblade.core.launch.BladeApplication; import org.springblade.core.transaction.annotation.SeataCloudApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; /** * Demo启动器 * * @author Chill */ -@BladeCloudApplication +@EnableFeignClients +@SeataCloudApplication public class TrunkLineApplication { public static void main(String[] args) { 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 97a6741d1..6b63b27c3 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 @@ -598,23 +598,23 @@ public class TaskQuestServiceImpl extends BaseServiceImpl 0) { - List list = taskQuest.getList(); - for (TaskQuestChildEntity taskQuestChildEntity : list) { - taskQuestChildEntity.setWarehouseId(id); - taskQuestChildEntity.setQuestId(taskQuest.getId()); - - } - taskQuestChildService.saveBatch(list); - //添加包件信息 - List collect = list.stream().map(TaskQuestChildEntity::getRefId).collect(Collectors.toList()); - addQuestDetail(myCurrentWarehouse.getId(), collect, questNum, taskQuest.getId()); + if (!taskQuest.getList().isEmpty()) { +// List list = taskQuest.getList(); +// for (TaskQuestChildEntity taskQuestChildEntity : list) { +// taskQuestChildEntity.setWarehouseId(id); +// taskQuestChildEntity.setQuestId(taskQuest.getId()); +// +// } +// taskQuestChildService.saveBatch(list); +// //添加包件信息 +// List collect = list.stream().map(TaskQuestChildEntity::getRefId).collect(Collectors.toList()); +// addQuestDetail(myCurrentWarehouse.getId(), collect, questNum, taskQuest.getId()); } else { addQuestDetail(myCurrentWarehouse.getId(), null, questNum, taskQuest.getId()); }