|  |  | @ -216,14 +216,12 @@ public class StaffServiceImpl implements StaffService { | 
			
		
	
		
			
				
					|  |  |  | 			CustomerAgencyEntity customerAgencyEntity = customerAgencyService.selectById(fromDTO.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  | 			fromDTO.setCustomerId(customerAgencyEntity.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		// epmetUserFeignClient.editStaff没有用到这俩参数,就注释了。
 | 
			
		
	
		
			
				
					|  |  |  | 		// fromDTO.setApp(tokenDto.getApp());
 | 
			
		
	
		
			
				
					|  |  |  | 		// fromDTO.setClient(tokenDto.getClient());
 | 
			
		
	
		
			
				
					|  |  |  | 		Result result = epmetUserFeignClient.editStaff(fromDTO); | 
			
		
	
		
			
				
					|  |  |  | 		if (!result.success()) { | 
			
		
	
		
			
				
					|  |  |  | 			if (result.getCode() != EpmetErrorCode.SERVER_ERROR.getCode()) { | 
			
		
	
		
			
				
					|  |  |  | 				return new Result().error(result.getCode(), result.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 			return new Result().error(EpmetErrorCode.STAFF_EDIT_FAILED.getCode(), EpmetErrorCode.STAFF_EDIT_FAILED.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 			throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),result.getInternalMsg(),result.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		// if (tokenDto.getClient().equals("web")){
 | 
			
		
	
		
			
				
					|  |  |  | 			if(CollectionUtils.isNotEmpty(fromDTO.getNewRoles())){ | 
			
		
	
	
		
			
				
					|  |  | @ -584,10 +582,7 @@ public class StaffServiceImpl implements StaffService { | 
			
		
	
		
			
				
					|  |  |  | 		submitDTO.setAgencyId(orgDTO.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  | 		Result<CustomerStaffDTO> result = epmetUserFeignClient.addStaff(submitDTO); | 
			
		
	
		
			
				
					|  |  |  | 		if (!result.success()) { | 
			
		
	
		
			
				
					|  |  |  | 			if (result.getCode() != EpmetErrorCode.SERVER_ERROR.getCode()) { | 
			
		
	
		
			
				
					|  |  |  | 				return new Result().error(result.getCode(), result.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 			return new Result().error(EpmetErrorCode.STAFF_ADD_FAILED.getCode(), EpmetErrorCode.STAFF_ADD_FAILED.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 			throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),result.getInternalMsg(),result.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		//3.人员机关表总人数加一、关系表新增关系数据
 | 
			
		
	
	
		
			
				
					|  |  | 
 |