|  |  | @ -10,10 +10,7 @@ import com.epmet.dto.form.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.entity.CustomerAgencyEntity; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.entity.CustomerStaffAgencyEntity; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.EpmetHeartOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.EpmetUserFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.GovProjectOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.OperCrmFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.*; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
	
		
			
				
					|  |  | @ -48,6 +45,8 @@ public class StaffServiceImpl implements StaffService { | 
			
		
	
		
			
				
					|  |  |  | 	private CustomerGridService customerGridService; | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private StaffTransferRecordService staffTransferRecordService; | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	public Result<StaffsInAgencyResultDTO> getStaffInfoForHome(StaffsInAgencyFromDTO fromDTO) { | 
			
		
	
	
		
			
				
					|  |  | @ -235,7 +234,12 @@ public class StaffServiceImpl implements StaffService { | 
			
		
	
		
			
				
					|  |  |  | 		//5.逻辑删除工作人员原组织加入的部门、网格,部门、网格总人数减1
 | 
			
		
	
		
			
				
					|  |  |  | 		customerDepartmentService.updateDepartment(fromDTO.getStaffId()); | 
			
		
	
		
			
				
					|  |  |  | 		customerGridService.updateGrid(fromDTO.getStaffId()); | 
			
		
	
		
			
				
					|  |  |  | 		//6.操作记录表新增调动记录
 | 
			
		
	
		
			
				
					|  |  |  | 		//6.更改工作人员组织角色
 | 
			
		
	
		
			
				
					|  |  |  | 		StaffRoleDTO staffRoleDTO = new StaffRoleDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		staffRoleDTO.setOrgId(fromDTO.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  | 		staffRoleDTO.setStaffId(fromDTO.getStaffId()); | 
			
		
	
		
			
				
					|  |  |  | 		epmetUserOpenFeignClient.changeRoleOrg(staffRoleDTO); | 
			
		
	
		
			
				
					|  |  |  | 		//7.操作记录表新增调动记录
 | 
			
		
	
		
			
				
					|  |  |  | 		StaffTransferRecordDTO staffTransferRecordDTO = new StaffTransferRecordDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		staffTransferRecordDTO.setCustomerId(tokenDto.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		staffTransferRecordDTO.setOperateStaffId(tokenDto.getUserId()); | 
			
		
	
	
		
			
				
					|  |  | 
 |