|
|
@ -88,7 +88,7 @@ public class ProjectExtractServiceImpl implements ProjectExtractService { |
|
|
|
pendingList.stream().flatMap(pending -> closedList.stream().filter(closed -> pending.getId().equals(closed.getProjectId())).map(process -> { |
|
|
|
FactOriginProjectMainDailyEntity entity = new FactOriginProjectMainDailyEntity(); |
|
|
|
entity.setId(process.getProjectId()); |
|
|
|
entity.setProjectStatus("close"); |
|
|
|
entity.setProjectStatus("closed"); |
|
|
|
entity.setCreatedTime(DateUtils.stringToDate(pending.getDateId(), DateUtils.DATE_PATTERN_YYYYMMDD)); |
|
|
|
entity.setUpdatedTime(process.getUpdatedTime()); |
|
|
|
entity.setIsResolved(process.getIsResolved()); |
|
|
@ -98,11 +98,18 @@ public class ProjectExtractServiceImpl implements ProjectExtractService { |
|
|
|
if (!CollectionUtils.isEmpty(finishOrgList)) { |
|
|
|
closeProjects.forEach(close -> finishOrgList.stream().filter(finish -> close.getId().equals(finish.getProjectId())).forEach(dto -> { |
|
|
|
String[] orgIds = dto.getPIdPath().split(StrConstant.COLON); |
|
|
|
String org = ""; |
|
|
|
if (orgIds.length > NumConstant.ONE) { |
|
|
|
close.setFinishOrgIds(orgIds[orgIds.length - 1]); |
|
|
|
org = orgIds[orgIds.length - 1]; |
|
|
|
} else { |
|
|
|
close.setFinishOrgIds(orgIds[0]); |
|
|
|
org = orgIds[0]; |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(dto.getGridId())) { |
|
|
|
org = org + StrConstant.COLON + dto.getGridId(); |
|
|
|
} else if (StringUtils.isNotEmpty(dto.getDepartmentId())) { |
|
|
|
org = org + StrConstant.COLON + dto.getDepartmentId(); |
|
|
|
} |
|
|
|
close.setFinishOrgIds(org); |
|
|
|
})); |
|
|
|
} |
|
|
|
//更新状态
|
|
|
@ -180,7 +187,7 @@ public class ProjectExtractServiceImpl implements ProjectExtractService { |
|
|
|
} |
|
|
|
} |
|
|
|
final List<FactOriginProjectMainDailyEntity> mainList = list; |
|
|
|
//节点发起人
|
|
|
|
//节点发起人 部门流转退回结案
|
|
|
|
List<ProcessInfoDTO> processList = projectProcessService.getProcessListByCustomer(customerId, dateString); |
|
|
|
if (!CollectionUtils.isEmpty(processList)) { |
|
|
|
List<FactOriginProjectLogDailyEntity> logList = processList.stream().map(process -> { |
|
|
@ -230,6 +237,7 @@ public class ProjectExtractServiceImpl implements ProjectExtractService { |
|
|
|
return entity; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
|
|
|
|
//节点发起人 响应
|
|
|
|
List<ProcessInfoDTO> responseList = projectProcessService.getResponseProcessList(customerId, dateString); |
|
|
|
if (!CollectionUtils.isEmpty(responseList)) { |
|
|
|
logList.addAll(responseList.stream().map(process -> { |
|
|
|