|
|
|
@ -158,19 +158,25 @@ public class TestingAlcoholController { |
|
|
|
public Result issueMatterFun(@RequestBody TaskTestingTaskDistribute distribute){ |
|
|
|
public Result issueMatterFun(@RequestBody TaskTestingTaskDistribute distribute){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TaskInspectionProblemVo vo =new TaskInspectionProblemVo(); |
|
|
|
TaskDataProblemVo vo =new TaskDataProblemVo(); |
|
|
|
switch (distribute.getTableKey()){ |
|
|
|
switch (distribute.getTableKey()){ |
|
|
|
case "selfexamination": |
|
|
|
case "selfexamination": |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(StrUtil.isNotBlank(distribute.getProblemVo().getPeoples())){ |
|
|
|
|
|
|
|
vo.setPeopleData(JSON.parseArray(distribute.getProblemVo().getPeoples(), TaskProblemDto.People.class)); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "inspection": |
|
|
|
case "inspection": |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(StrUtil.isNotBlank(distribute.getProblemVo().getPeoples())){ |
|
|
|
|
|
|
|
vo.setPeopleData(JSON.parseArray(distribute.getProblemVo().getPeoples(), TaskProblemDto.People.class)); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "testing_alcohol": |
|
|
|
case "testing_alcohol": |
|
|
|
//违反六项规定
|
|
|
|
//违反六项规定
|
|
|
|
@ -184,10 +190,13 @@ public class TestingAlcoholController { |
|
|
|
SupTaskProblem supTaskProblem =list.get(0); |
|
|
|
SupTaskProblem supTaskProblem =list.get(0); |
|
|
|
BeanUtils.copyProperties(supTaskProblem, vo); |
|
|
|
BeanUtils.copyProperties(supTaskProblem, vo); |
|
|
|
if (StrUtil.isNotBlank(supTaskProblem.getPeoples())) { |
|
|
|
if (StrUtil.isNotBlank(supTaskProblem.getPeoples())) { |
|
|
|
vo.setPeoples(JSON.parseArray(supTaskProblem.getPeoples(), TaskProblemDto.People.class)); |
|
|
|
vo.setPeopleData(JSON.parseArray(supTaskProblem.getPeoples(), TaskProblemDto.People.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (StrUtil.isNotBlank(supTaskProblem.getFiles())) { |
|
|
|
if (StrUtil.isNotBlank(supTaskProblem.getFiles())) { |
|
|
|
vo.setFileData(JSON.parseArray(supTaskProblem.getFiles(), FileVo.class)); |
|
|
|
vo.setFileData(JSON.parseArray(supTaskProblem.getFiles(), FileVo.class)); |
|
|
|
|
|
|
|
if(CollectionUtil.isNotEmpty(vo.getFileData())){ |
|
|
|
|
|
|
|
vo.getFileData().forEach(s->s.setId(null)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -200,10 +209,13 @@ public class TestingAlcoholController { |
|
|
|
SupTaskProblem problem = taskProblems.get(0); |
|
|
|
SupTaskProblem problem = taskProblems.get(0); |
|
|
|
BeanUtils.copyProperties(problem, vo); |
|
|
|
BeanUtils.copyProperties(problem, vo); |
|
|
|
if (StrUtil.isNotBlank(problem.getPeoples())) { |
|
|
|
if (StrUtil.isNotBlank(problem.getPeoples())) { |
|
|
|
vo.setPeoples(JSON.parseArray(problem.getPeoples(), TaskProblemDto.People.class)); |
|
|
|
vo.setPeopleData(JSON.parseArray(problem.getPeoples(), TaskProblemDto.People.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (StrUtil.isNotBlank(problem.getFiles())) { |
|
|
|
if (StrUtil.isNotBlank(problem.getFiles())) { |
|
|
|
vo.setFileData(JSON.parseArray(problem.getFiles(), FileVo.class)); |
|
|
|
vo.setFileData(JSON.parseArray(problem.getFiles(), FileVo.class)); |
|
|
|
|
|
|
|
if(CollectionUtil.isNotEmpty(vo.getFileData())){ |
|
|
|
|
|
|
|
vo.getFileData().forEach(s->s.setId(null)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
@ -211,15 +223,15 @@ public class TestingAlcoholController { |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
vo= distribute.getProblemVo(); |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
if (StrUtil.isNotBlank(distribute.getProblemVo().getFiles())) { |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
vo.setFileData(JSON.parseArray(distribute.getProblemVo().getFiles(), FileVo.class)); |
|
|
|
|
|
|
|
if(CollectionUtil.isNotEmpty(vo.getFileData())){ |
|
|
|
|
|
|
|
vo.getFileData().forEach(s->s.setId(null)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(StrUtil.isNotBlank(distribute.getProblemVo().getPeoples())){ |
|
|
|
|
|
|
|
vo.setPeopleData(JSON.parseArray(distribute.getProblemVo().getPeoples(), TaskProblemDto.People.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NegativeDto dto =new NegativeDto(); |
|
|
|
NegativeDto dto =new NegativeDto(); |
|
|
|
//问题来源
|
|
|
|
//问题来源
|
|
|
|
dto.setProblemSources(ProblemSourcesEnum.ZXDC.getLabel()); |
|
|
|
dto.setProblemSources(ProblemSourcesEnum.ZXDC.getLabel()); |
|
|
|
|