|
|
|
|
@ -75,13 +75,15 @@ public class TaskManagementService {
|
|
|
|
|
if(CollectionUtil.isNotEmpty(dto.getFileList())){ |
|
|
|
|
task.setFiles(JSON.toJSONString(dto.getFileList())); |
|
|
|
|
} |
|
|
|
|
log.info("---------------------"); |
|
|
|
|
log.info(String.valueOf("六项规定督察".equals(dto.getSpecialType()))); |
|
|
|
|
if("日常督察".equals(dto.getSupervisionType())){ |
|
|
|
|
task.setTaskType("inspection"); |
|
|
|
|
}else{ |
|
|
|
|
if("所队自查".equals(dto.getSpecialType())){ |
|
|
|
|
task.setTaskType("selfexamination"); |
|
|
|
|
} |
|
|
|
|
if("禁酒督察".equals(dto.getSpecialType())) { |
|
|
|
|
else if("六项规定督察".equals(dto.getSpecialType())) { |
|
|
|
|
task.setTaskType("testing_alcohol"); |
|
|
|
|
if (CollectionUtil.isNotEmpty(dto.getUserList())) { |
|
|
|
|
Set<String> departIds = dto.getUserList().stream().map(SupTaskTestingAlcoholPeople::getDepartId).collect(Collectors.toSet()); |
|
|
|
|
@ -145,7 +147,7 @@ public class TaskManagementService {
|
|
|
|
|
return selfexaminationContentService.saveBatch(dto.getSelfContents()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if("禁酒督察".equals(dto.getSpecialType())){ |
|
|
|
|
if("六项规定督察".equals(dto.getSpecialType())){ |
|
|
|
|
SupTaskTestingAlcohol testingAlcohol = new SupTaskTestingAlcohol(); |
|
|
|
|
BeanUtils.copyProperties(dto, testingAlcohol); |
|
|
|
|
testingAlcohol.setTaskId(task.getId()); |
|
|
|
|
@ -256,7 +258,7 @@ public class TaskManagementService {
|
|
|
|
|
taskManagementDto.setSelfContents(contents); |
|
|
|
|
break; |
|
|
|
|
case "testing_alcohol": |
|
|
|
|
taskManagementDto.setSpecialType("禁酒督察"); |
|
|
|
|
taskManagementDto.setSpecialType("六项规定督察"); |
|
|
|
|
taskManagementDto.setSupervisionType("专项督察"); |
|
|
|
|
SupTaskTestingAlcohol testingAlcohol = testingAlcoholService.getOne(new LambdaQueryWrapper<SupTaskTestingAlcohol>().eq(SupTaskTestingAlcohol::getTaskId,id)); |
|
|
|
|
|
|
|
|
|
|