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