|  | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 | 
	
		
			
				|  |  |  import com.google.common.collect.Lists;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.TokenProvider;
 | 
	
		
			
				|  |  | +import com.jeeplus.flowable.feign.IFinanceApi;
 | 
	
		
			
				|  |  |  import com.jeeplus.flowable.feign.IFlowableApi;
 | 
	
		
			
				|  |  |  import com.jeeplus.human.depart.handover.domain.*;
 | 
	
		
			
				|  |  |  import com.jeeplus.human.depart.handover.mapper.HandoverMapper;
 | 
	
	
		
			
				|  | @@ -149,7 +150,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
 | 
	
		
			
				|  |  |              String procDefKey = map.get("key")+"";
 | 
	
		
			
				|  |  |              String businessTable = "human_resources_depart_handover_draft";
 | 
	
		
			
				|  |  |              String businessId = uid;
 | 
	
		
			
				|  |  | -            String title = "底稿归档检查";
 | 
	
		
			
				|  |  | +            String title = report.getName() + "-离职申请-底稿归档检查";
 | 
	
		
			
				|  |  |              String assignee = report.getDraftAdministrator();
 | 
	
		
			
				|  |  |              String recordType = "";
 | 
	
		
			
				|  |  |              String userId = report.getCreateById();
 | 
	
	
		
			
				|  | @@ -282,6 +283,22 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
 | 
	
		
			
				|  |  |              handoverImprestService.saveOrUpdate(handoverImprest);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            //将交接人添加到离职人员所有项目的项目组中
 | 
	
		
			
				|  |  | +            //查出所有的项目id
 | 
	
		
			
				|  |  | +            List<String> ids = SpringUtil.getBean(IFinanceApi.class).getCwProjectData();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            ids.forEach(id->{
 | 
	
		
			
				|  |  | +                //根据id查出项目组成员信息
 | 
	
		
			
				|  |  | +                List<String> membersIdList = SpringUtil.getBean(IFinanceApi.class).getMembersId(id);
 | 
	
		
			
				|  |  | +                if (!membersIdList.contains(report.getProjectManager())) {
 | 
	
		
			
				|  |  | +                    //将这个项目经理加入到项目组成员中
 | 
	
		
			
				|  |  | +                    SpringUtil.getBean(IFinanceApi.class).insertMembers(id,report.getProjectManager());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return report;
 |