|
@ -879,22 +879,27 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
* @param closeCaseTime 结案时间 |
|
|
* @param closeCaseTime 结案时间 |
|
|
*/ |
|
|
*/ |
|
|
private void modifyIcEvent(ProjectEntity projectEntity,String userId,Date closeCaseTime) { |
|
|
private void modifyIcEvent(ProjectEntity projectEntity,String userId,Date closeCaseTime) { |
|
|
boolean icEventFlag=false; |
|
|
boolean icEventFlag = false; |
|
|
if("issue".equals(projectEntity.getOrigin())){ |
|
|
String icEventId = ""; |
|
|
List<String> issueIds =new ArrayList<>(); |
|
|
if ("issue".equals(projectEntity.getOrigin())) { |
|
|
|
|
|
List<String> issueIds = new ArrayList<>(); |
|
|
issueIds.add(projectEntity.getOrigin()); |
|
|
issueIds.add(projectEntity.getOrigin()); |
|
|
Result<List<IssueProfileDTO>> issueRes=govIssueOpenFeignClient.getIssueProfile(issueIds); |
|
|
Result<List<IssueProfileDTO>> issueRes = govIssueOpenFeignClient.getIssueProfile(issueIds); |
|
|
if(issueRes.success()&&CollectionUtils.isNotEmpty(issueRes.getData())){ |
|
|
if (issueRes.success() && CollectionUtils.isNotEmpty(issueRes.getData())) { |
|
|
if("ic_event".equals(issueRes.getData().get(NumConstant.ZERO).getIssueSourceType())){ |
|
|
IssueProfileDTO issueProfileDTO = issueRes.getData().get(NumConstant.ZERO); |
|
|
icEventFlag=true; |
|
|
if ("ic_event".equals(issueProfileDTO.getIssueSourceType())) { |
|
|
|
|
|
icEventFlag = true; |
|
|
|
|
|
icEventId = issueProfileDTO.getSourceId(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} else if ("ic_event".equals(projectEntity.getOrigin())) { |
|
|
|
|
|
icEventId = projectEntity.getOriginId(); |
|
|
} |
|
|
} |
|
|
if ("ic_event".equals(projectEntity.getOrigin())||icEventFlag) { |
|
|
if ("ic_event".equals(projectEntity.getOrigin()) || icEventFlag) { |
|
|
ColseProjectOrDemandFormDTO dto = new ColseProjectOrDemandFormDTO(); |
|
|
ColseProjectOrDemandFormDTO dto = new ColseProjectOrDemandFormDTO(); |
|
|
dto.setCustomerId(projectEntity.getCustomerId()); |
|
|
dto.setCustomerId(projectEntity.getCustomerId()); |
|
|
dto.setUserId(projectEntity.getUpdatedBy()); |
|
|
dto.setUserId(projectEntity.getUpdatedBy()); |
|
|
dto.setIcEventId(projectEntity.getOriginId()); |
|
|
dto.setIcEventId(icEventId); |
|
|
dto.setType("project"); |
|
|
dto.setType("project"); |
|
|
dto.setCloseCaseTime(closeCaseTime); |
|
|
dto.setCloseCaseTime(closeCaseTime); |
|
|
icEventService.closeProjectOrDemand(dto); |
|
|
icEventService.closeProjectOrDemand(dto); |
|
|