|
|
|
@ -1140,13 +1140,16 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
.eq("is_deleted", 0); |
|
|
|
|
List<TaskQuestChildEntity> questChildEntitys = taskQuestChildService.list(queryWrapper); |
|
|
|
|
List<String> marketNames = null; |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
if(ObjectUtils.isNotNull(questChildEntitys) && !questChildEntitys.isEmpty()){ |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
} |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断是否有明细数据存入
|
|
|
|
|
// QueryWrapper<QuestDetailEntity> questDetailEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
@ -1198,13 +1201,23 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
.eq("is_deleted", 0); |
|
|
|
|
List<TaskQuestChildEntity> questChildEntitys = taskQuestChildService.list(queryWrapper); |
|
|
|
|
List<String> marketNames = null; |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
if(ObjectUtils.isNotNull(questChildEntitys) && !questChildEntitys.isEmpty()){ |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
} |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
// for (TaskQuestChildEntity childEntity : questChildEntitys) {
|
|
|
|
|
// if (Objects.isNull(marketNames)) {
|
|
|
|
|
// marketNames = new ArrayList<>();
|
|
|
|
|
// }
|
|
|
|
|
// marketNames.add(childEntity.getRefName());
|
|
|
|
|
// }
|
|
|
|
|
// taskSearchDTO.setMarketNames(marketNames);
|
|
|
|
|
|
|
|
|
|
//判断是否有明细数据存入
|
|
|
|
|
// QueryWrapper<QuestDetailEntity> questDetailEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
@ -1256,13 +1269,23 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
.eq("is_deleted", 0); |
|
|
|
|
List<TaskQuestChildEntity> questChildEntitys = taskQuestChildService.list(queryWrapper); |
|
|
|
|
List<String> marketNames = null; |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
if(ObjectUtils.isNotNull(questChildEntitys) && !questChildEntitys.isEmpty()){ |
|
|
|
|
for (TaskQuestChildEntity childEntity : questChildEntitys) { |
|
|
|
|
if (Objects.isNull(marketNames)) { |
|
|
|
|
marketNames = new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
} |
|
|
|
|
marketNames.add(childEntity.getRefName()); |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
} |
|
|
|
|
taskSearchDTO.setMarketNames(marketNames); |
|
|
|
|
|
|
|
|
|
// for (TaskQuestChildEntity childEntity : questChildEntitys) {
|
|
|
|
|
// if (Objects.isNull(marketNames)) {
|
|
|
|
|
// marketNames = new ArrayList<>();
|
|
|
|
|
// }
|
|
|
|
|
// marketNames.add(childEntity.getRefName());
|
|
|
|
|
// }
|
|
|
|
|
// taskSearchDTO.setMarketNames(marketNames);
|
|
|
|
|
|
|
|
|
|
//判断是否有明细数据存入
|
|
|
|
|
// QueryWrapper<QuestDetailEntity> questDetailEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
|