|
|
@ -864,7 +864,7 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
|
|
|
|
//2022-5-19 sun 需求完成时 来源事件管理的需求需要去修改事件数据 start
|
|
|
|
//2022-10-11 如果项目来源于议题且议题来源于事件,也需要去回写...
|
|
|
|
modifyIcEvent(projectEntity,fromDTO.getUserId(),current); |
|
|
|
modifyIcEvent(projectEntity,fromDTO.getUserId(),current,projectEntity.getId()); |
|
|
|
//2022-5-19 sun end
|
|
|
|
|
|
|
|
} |
|
|
@ -878,12 +878,13 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
* @param userId |
|
|
|
* @param closeCaseTime 结案时间 |
|
|
|
*/ |
|
|
|
private void modifyIcEvent(ProjectEntity projectEntity,String userId,Date closeCaseTime) { |
|
|
|
public void modifyIcEvent(ProjectEntity projectEntity,String userId,Date closeCaseTime,String projectId) { |
|
|
|
ProjectEntity projectEntity1=baseDao.selectById(projectId); |
|
|
|
boolean icEventFlag = false; |
|
|
|
String icEventId = ""; |
|
|
|
if ("issue".equals(projectEntity.getOrigin())) { |
|
|
|
if ("issue".equals(projectEntity1.getOrigin())) { |
|
|
|
List<String> issueIds = new ArrayList<>(); |
|
|
|
issueIds.add(projectEntity.getOrigin()); |
|
|
|
issueIds.add(projectEntity1.getOrigin()); |
|
|
|
Result<List<IssueProfileDTO>> issueRes = govIssueOpenFeignClient.getIssueProfile(issueIds); |
|
|
|
if (issueRes.success() && CollectionUtils.isNotEmpty(issueRes.getData())) { |
|
|
|
IssueProfileDTO issueProfileDTO = issueRes.getData().get(NumConstant.ZERO); |
|
|
@ -892,13 +893,13 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
icEventId = issueProfileDTO.getSourceId(); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if ("ic_event".equals(projectEntity.getOrigin())) { |
|
|
|
icEventId = projectEntity.getOriginId(); |
|
|
|
} else if ("ic_event".equals(projectEntity1.getOrigin())) { |
|
|
|
icEventId = projectEntity1.getOriginId(); |
|
|
|
} |
|
|
|
if ("ic_event".equals(projectEntity.getOrigin()) || icEventFlag) { |
|
|
|
if ("ic_event".equals(projectEntity1.getOrigin()) || icEventFlag) { |
|
|
|
ColseProjectOrDemandFormDTO dto = new ColseProjectOrDemandFormDTO(); |
|
|
|
dto.setCustomerId(projectEntity.getCustomerId()); |
|
|
|
dto.setUserId(projectEntity.getUpdatedBy()); |
|
|
|
dto.setCustomerId(projectEntity1.getCustomerId()); |
|
|
|
dto.setUserId(userId); |
|
|
|
dto.setIcEventId(icEventId); |
|
|
|
dto.setType("project"); |
|
|
|
dto.setCloseCaseTime(closeCaseTime); |
|
|
|