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