|
|
@ -467,6 +467,17 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
IssueProjectResultDTO issueProjectResultDTO = new IssueProjectResultDTO(); |
|
|
|
List<TickStaffFormDTO> staffList = formDTO.getStaffList(); |
|
|
|
IssueDTO issueDTO = formDTO.getIssueDTO(); |
|
|
|
//0.因项目还未添加分布式事务,议题转项目,如果项目数据入库成功议题数据也修改成功但是消息发送失败时则议题数据可以回滚但项目服务的数据不能回滚
|
|
|
|
//先根据客户Id机关Id议题Id查询项目表是否已存在,存在则说明之前转过切失败了,这样的数据不能再操作了,只能操作数据库,将项目表和项目进展表数据清除
|
|
|
|
ProjectDTO projectDTO = new ProjectDTO(); |
|
|
|
projectDTO.setCustomerId(issueDTO.getCustomerId()); |
|
|
|
projectDTO.setAgencyId(issueDTO.getOrgId()); |
|
|
|
projectDTO.setOrigin(ProjectConstant.ISSUE); |
|
|
|
projectDTO.setOriginId(issueDTO.getId()); |
|
|
|
List<ProjectDTO> listProject = baseDao.selectProjectList(projectDTO); |
|
|
|
if (null != listProject && listProject.size() > NumConstant.ZERO) { |
|
|
|
throw new RenException(ProjectConstant.SAVE_PROJECT_EXCEPTION); |
|
|
|
} |
|
|
|
//1:调用gov-org服务,获取所有勾选人员以及议题数据对应的组织信息、部门信息、网格信息用于对处理部门和ORG_ID_PATH字段的赋值使用
|
|
|
|
List<String> agencyIdList = staffList.stream().map(TickStaffFormDTO::getAgencyId).collect(Collectors.toList()); |
|
|
|
agencyIdList.add(issueDTO.getOrgId()); |
|
|
|