|
|
@ -1202,29 +1202,38 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
//1.查询事件基础信息
|
|
|
|
IcEventEntity entity = baseDao.selectById(formDTO.getIcEventId()); |
|
|
|
if (null == entity) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "事件不存在"); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "事件不存在","事件不存在"); |
|
|
|
} |
|
|
|
|
|
|
|
//2.查询事件回复信息
|
|
|
|
LinkedList<IcEventProcessListResultDTO> event = icEventReplyService.getByEventId(formDTO.getIcEventId()); |
|
|
|
|
|
|
|
// operationType 0:已回复 1:已转项目 2:已转需求3:转议题
|
|
|
|
//3.判断查询事件项目进展或需求进展信息
|
|
|
|
//项目进展
|
|
|
|
if ("1".equals(entity.getOperationType())) { |
|
|
|
// 项目进展
|
|
|
|
ProcessListV2FormDTO processListV2FormDTO = new ProcessListV2FormDTO(); |
|
|
|
processListV2FormDTO.setProjectId(entity.getOperationId()); |
|
|
|
List<ProcessListV2ResultDTO> project = projectTraceService.processListV2(processListV2FormDTO); |
|
|
|
List<IcEventProcessListResultDTO> projectList = ConvertUtils.sourceToTarget(project, IcEventProcessListResultDTO.class); |
|
|
|
projectList.forEach(p->p.setType("project")); |
|
|
|
projectList.forEach(p -> p.setType("project")); |
|
|
|
resultList.addAll(projectList); |
|
|
|
} |
|
|
|
//需求进展
|
|
|
|
if ("2".equals(entity.getOperationType())) { |
|
|
|
} else if ("2".equals(entity.getOperationType())) { |
|
|
|
// 需求进展
|
|
|
|
LinkedList<IcEventProcessListResultDTO> demand = icEventOperationLogService.getByEventId(formDTO.getIcEventId()); |
|
|
|
resultList.addAll(demand); |
|
|
|
} else if ("3".equals(entity.getOperationType())) { |
|
|
|
// 议题处理进展
|
|
|
|
IssueIdFormDTO issueIdFormDTO = new IssueIdFormDTO(); |
|
|
|
issueIdFormDTO.setIssueId(entity.getOperationId()); |
|
|
|
Result<List<ProcessListResultDTO>> issueProcessRes = govIssueOpenFeignClient.queryIssueProcess(issueIdFormDTO); |
|
|
|
if(!issueProcessRes.success()||CollectionUtils.isEmpty(issueProcessRes.getData())){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "事件已转议题,议题处理进展查询异常", "事件已转议题,议题处理进展查询异常"); |
|
|
|
} |
|
|
|
// todo
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
//最后拼上回复的
|
|
|
|
//2.查询事件回复信息
|
|
|
|
LinkedList<IcEventProcessListResultDTO> event = icEventReplyService.getByEventId(formDTO.getIcEventId()); |
|
|
|
resultList.addAll(event); |
|
|
|
|
|
|
|
return resultList; |
|
|
|
} |
|
|
|
|
|
|
|