|  |  | @ -285,7 +285,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 	 **/ | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	@Transactional(rollbackFor = Exception.class) | 
			
		
	
		
			
				
					|  |  |  | 	public void projectApproval(TokenDto tokenDTO, ProjectApprovalFormDTO formDTO) { | 
			
		
	
		
			
				
					|  |  |  | 	public void projectApproval(ProjectApprovalFormDTO formDTO) { | 
			
		
	
		
			
				
					|  |  |  | 		List<TickStaffFormDTO> staffList = formDTO.getStaffList(); | 
			
		
	
		
			
				
					|  |  |  | 		//1.文字内容安全校验
 | 
			
		
	
		
			
				
					|  |  |  | 		List<String> list = new ArrayList<>(); | 
			
		
	
	
		
			
				
					|  |  | @ -295,12 +295,12 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 		//2.数据准备,查询需要用到的数据
 | 
			
		
	
		
			
				
					|  |  |  | 		//2-1.获取token用户所属组织信息
 | 
			
		
	
		
			
				
					|  |  |  | 		LoginUserDetailsFormDTO dto = new LoginUserDetailsFormDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setApp(tokenDTO.getApp()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setClient(tokenDTO.getClient()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setUserId(tokenDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setApp(formDTO.getApp()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setClient(formDTO.getClient()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setUserId(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 		Result<LoginUserDetailsResultDTO> resultDto = epmetUserOpenFeignClient.getLoginUserDetails(dto); | 
			
		
	
		
			
				
					|  |  |  | 		if (!resultDto.success() || StringUtils.isEmpty(resultDto.getData().getAgencyId())) { | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException(String.format("项目立项调用user服务查询用户数据失败,userId->", tokenDTO.getUserId())); | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException(String.format("项目立项调用user服务查询用户数据失败,userId->", formDTO.getUserId())); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		LoginUserDetailsResultDTO loginUser = resultDto.getData(); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -326,7 +326,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 		CategoryTagListFormDTO categoryTag = new CategoryTagListFormDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		List<String> categoryIdList = formDTO.getCategoryList().stream().map(CategoryOrTagFormDTO::getId).collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  | 		List<String> tagIdList = formDTO.getTagList().stream().map(CategoryOrTagFormDTO::getId).collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  | 		categoryTag.setCustomerId(tokenDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		categoryTag.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		categoryTag.setCategoryIdList(categoryIdList); | 
			
		
	
		
			
				
					|  |  |  | 		categoryTag.setTagIdList(tagIdList); | 
			
		
	
		
			
				
					|  |  |  | 		Result<CategoryTagResultDTO> resultDTOResult = govIssueOpenFeignClient.getCategoryTagList(categoryTag); | 
			
		
	
	
		
			
				
					|  |  | @ -339,7 +339,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 		//3.封装保存业务数据
 | 
			
		
	
		
			
				
					|  |  |  | 		//3-1.项目主表新增数据
 | 
			
		
	
		
			
				
					|  |  |  | 		ProjectEntity projectEntity = new ProjectEntity(); | 
			
		
	
		
			
				
					|  |  |  | 		projectEntity.setCustomerId(tokenDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		projectEntity.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		projectEntity.setAgencyId(loginUser.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  | 		projectEntity.setOrigin(ProjectConstant.AGENCY); | 
			
		
	
		
			
				
					|  |  |  | 		projectEntity.setOriginId(loginUser.getAgencyId()); | 
			
		
	
	
		
			
				
					|  |  | @ -352,8 +352,8 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 		//3-2.项目进展表新增第一个节点数据
 | 
			
		
	
		
			
				
					|  |  |  | 		ProjectProcessEntity processEntity = new ProjectProcessEntity(); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setProjectId(projectEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setCustomerId(tokenDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setStaffId(tokenDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setStaffId(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setOperation(ProjectConstant.OPERATION_CREATED); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setOperationName(ProjectConstant.OPERATION_PROJECT_APPROVAL); | 
			
		
	
		
			
				
					|  |  |  | 		processEntity.setPublicReply(formDTO.getPublicReply()); | 
			
		
	
	
		
			
				
					|  |  | @ -407,7 +407,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 		//3-4.项目附件表新增数据
 | 
			
		
	
		
			
				
					|  |  |  | 		if ((null != formDTO.getPublicFile() && formDTO.getPublicFile().size() > NumConstant.ZERO) | 
			
		
	
		
			
				
					|  |  |  | 				|| (null != formDTO.getInternalFile() && formDTO.getInternalFile().size() > NumConstant.ZERO)) { | 
			
		
	
		
			
				
					|  |  |  | 			projectService.saveFile(formDTO.getPublicFile(), formDTO.getInternalFile(), tokenDTO.getCustomerId(), projectEntity.getId(), processEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 			projectService.saveFile(formDTO.getPublicFile(), formDTO.getInternalFile(), formDTO.getCustomerId(), projectEntity.getId(), processEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		//3-5.项目分类表新增数据
 | 
			
		
	
	
		
			
				
					|  |  | @ -417,7 +417,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 				categoryList.forEach(ca->{ | 
			
		
	
		
			
				
					|  |  |  | 					if(item.getId().equals(ca.getId())){ | 
			
		
	
		
			
				
					|  |  |  | 						ProjectCategoryEntity entity = new ProjectCategoryEntity(); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCustomerId(tokenDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setProjectId(projectEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCategoryId(item.getId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCategoryPids(ca.getPids()); | 
			
		
	
	
		
			
				
					|  |  | @ -436,7 +436,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 				tagList.forEach(ta->{ | 
			
		
	
		
			
				
					|  |  |  | 					if(item.getId().equals(ta.getId())){ | 
			
		
	
		
			
				
					|  |  |  | 						ProjectTagsEntity entity = new ProjectTagsEntity(); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCustomerId(tokenDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setProjectId(projectEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setTagId(item.getId()); | 
			
		
	
		
			
				
					|  |  |  | 						entity.setTagName(ta.getTagName()); | 
			
		
	
	
		
			
				
					|  |  | @ -457,7 +457,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS | 
			
		
	
		
			
				
					|  |  |  | 				period.setProjectStaffId(o); | 
			
		
	
		
			
				
					|  |  |  | 				period.setInformedDate(current); | 
			
		
	
		
			
				
					|  |  |  | 				period.setSourceOperation(ProjectConstant.OPERATION_CREATED); | 
			
		
	
		
			
				
					|  |  |  | 				period.setCreatedBy(tokenDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 				period.setCreatedBy(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 				container.add(period); | 
			
		
	
		
			
				
					|  |  |  | 			}); | 
			
		
	
		
			
				
					|  |  |  | 			relationDao.insertBatch(container); | 
			
		
	
	
		
			
				
					|  |  | 
 |