|  | @@ -583,10 +583,7 @@ public class ProjectRecordsService extends CrudService<ProjectRecordsDao, Projec
 | 
	
		
			
				|  |  |  		//保存项目负责人(新添代码start)
 | 
	
		
			
				|  |  |  		List<User> lds = projectRecords.getProjectLeaders();
 | 
	
		
			
				|  |  |  		User user2=new User();
 | 
	
		
			
				|  |  | -		if(null!=lds&&lds.size()>0){
 | 
	
		
			
				|  |  | -			this.saveProjectUsers(projectRecords.getId(), lds, true);
 | 
	
		
			
				|  |  | -			user2.setId(lds.get(0).getId());
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		//(end)
 | 
	
		
			
				|  |  |      	int projectStatus = projectRecords.getProjectStatus();
 | 
	
		
			
				|  |  |  		String taskDefKey = projectRecords.getAct().getTaskDefKey();
 | 
	
	
		
			
				|  | @@ -745,19 +742,27 @@ public class ProjectRecordsService extends CrudService<ProjectRecordsDao, Projec
 | 
	
		
			
				|  |  |  				notify.setNotifyId(projectRecords.getId());
 | 
	
		
			
				|  |  |  				userList = workProjectNotifyService.readByNotifyId(notify);
 | 
	
		
			
				|  |  |  				users.add(projectRecords.getCreateBy());
 | 
	
		
			
				|  |  | +				//新增代码----------
 | 
	
		
			
				|  |  | +				if(null!=lds&&lds.size()>0){
 | 
	
		
			
				|  |  | +					this.saveProjectUsers(projectRecords.getId(), lds, true);
 | 
	
		
			
				|  |  | +					for(int i=0;i<lds.size();i++){
 | 
	
		
			
				|  |  | +						user2.setId(lds.get(i).getId());
 | 
	
		
			
				|  |  | +						workProjectNotifyService
 | 
	
		
			
				|  |  | +								.save(UtilNotify
 | 
	
		
			
				|  |  | +										.saveNotify(projectRecords.getId(),
 | 
	
		
			
				|  |  | +												/*projectRecords.getCreateBy(),*/
 | 
	
		
			
				|  |  | +												user2,
 | 
	
		
			
				|  |  | +												projectRecords.getCompany().getId(),
 | 
	
		
			
				|  |  | +												titleStr,
 | 
	
		
			
				|  |  | +												notifyStr,
 | 
	
		
			
				|  |  | +												"39",
 | 
	
		
			
				|  |  | +												"0",
 | 
	
		
			
				|  |  | +												"待通知",
 | 
	
		
			
				|  |  | +												notifyRole));
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -				workProjectNotifyService
 | 
	
		
			
				|  |  | -						.save(UtilNotify
 | 
	
		
			
				|  |  | -								.saveNotify(projectRecords.getId(),
 | 
	
		
			
				|  |  | -										/*projectRecords.getCreateBy(),*/
 | 
	
		
			
				|  |  | -										user2,
 | 
	
		
			
				|  |  | -										projectRecords.getCompany().getId(),
 | 
	
		
			
				|  |  | -										titleStr,
 | 
	
		
			
				|  |  | -										notifyStr,
 | 
	
		
			
				|  |  | -										"39",
 | 
	
		
			
				|  |  | -										"0",
 | 
	
		
			
				|  |  | -										"待通知",
 | 
	
		
			
				|  |  | -										notifyRole));
 | 
	
		
			
				|  |  |  			} else {
 | 
	
		
			
				|  |  |  				WorkProjectNotify notify = new WorkProjectNotify();
 | 
	
		
			
				|  |  |  				notify.setNotifyId(projectRecords.getId());
 | 
	
	
		
			
				|  | @@ -765,7 +770,7 @@ public class ProjectRecordsService extends CrudService<ProjectRecordsDao, Projec
 | 
	
		
			
				|  |  |  				users.add(projectRecords.getCreateBy());
 | 
	
		
			
				|  |  |  				if (projectRecords.getProjectStatus()!= ProjectStatusEnum.RECALL.getValue()){
 | 
	
		
			
				|  |  |  					projectRecords.setProjectStatus(ProjectStatusEnum.REJECTED.getValue());
 | 
	
		
			
				|  |  | -					workProjectNotifyService
 | 
	
		
			
				|  |  | +					/*workProjectNotifyService
 | 
	
		
			
				|  |  |  							.save(UtilNotify
 | 
	
		
			
				|  |  |  									.saveNotify(projectRecords.getId(),
 | 
	
		
			
				|  |  |  											projectRecords.getCreateBy(),
 | 
	
	
		
			
				|  | @@ -775,7 +780,27 @@ public class ProjectRecordsService extends CrudService<ProjectRecordsDao, Projec
 | 
	
		
			
				|  |  |  											"39",
 | 
	
		
			
				|  |  |  											"0",
 | 
	
		
			
				|  |  |  											"待通知",
 | 
	
		
			
				|  |  | -											notifyRole));
 | 
	
		
			
				|  |  | +											notifyRole));*/
 | 
	
		
			
				|  |  | +					//新增代码----------
 | 
	
		
			
				|  |  | +					if(null!=lds&&lds.size()>0){
 | 
	
		
			
				|  |  | +						this.saveProjectUsers(projectRecords.getId(), lds, true);
 | 
	
		
			
				|  |  | +						for(int i=0;i<lds.size();i++){
 | 
	
		
			
				|  |  | +							user2.setId(lds.get(i).getId());
 | 
	
		
			
				|  |  | +							workProjectNotifyService
 | 
	
		
			
				|  |  | +									.save(UtilNotify
 | 
	
		
			
				|  |  | +											.saveNotify(projectRecords.getId(),
 | 
	
		
			
				|  |  | +													/*projectRecords.getCreateBy(),*/
 | 
	
		
			
				|  |  | +													user2,
 | 
	
		
			
				|  |  | +													projectRecords.getCompany().getId(),
 | 
	
		
			
				|  |  | +													titleStr,
 | 
	
		
			
				|  |  | +													notifyStr,
 | 
	
		
			
				|  |  | +													"39",
 | 
	
		
			
				|  |  | +													"0",
 | 
	
		
			
				|  |  | +													"待通知",
 | 
	
		
			
				|  |  | +													notifyRole));
 | 
	
		
			
				|  |  | +						}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			workActivityProcessService.deleteProcessIdAuditUsers(projectRecords.getProcessInstanceId());
 |