| 
						
						
						
					 | 
					@ -1,10 +1,10 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					package com.epmet.service.impl; | 
					 | 
					 | 
					package com.epmet.service.impl; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.constant.StrConstant; | 
					 | 
					 | 
					import com.epmet.commons.tools.constant.StrConstant; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.exception.RenException; | 
					 | 
					 | 
					import com.epmet.commons.tools.exception.RenException; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.constant.ModuleConstant; | 
					 | 
					 | 
					import com.epmet.constant.ModuleConstant; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.CustomerAgencyDTO; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.form.*; | 
					 | 
					 | 
					import com.epmet.dto.form.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.StaffSinAgencyResultDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.StaffSinAgencyResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.StaffSinDeptResultDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.StaffSinDeptResultDTO; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -12,7 +12,6 @@ import com.epmet.dto.result.StaffSinGridResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.feign.EpmetUserOpenFeignClient; | 
					 | 
					 | 
					import com.epmet.feign.EpmetUserOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.feign.GovOrgOpenFeignClient; | 
					 | 
					 | 
					import com.epmet.feign.GovOrgOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.OpenUpService; | 
					 | 
					 | 
					import com.epmet.service.OpenUpService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.bouncycastle.math.raw.Mod; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.BeanUtils; | 
					 | 
					 | 
					import org.springframework.beans.BeanUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -48,6 +47,9 @@ public class OpenUpServiceImpl implements OpenUpService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (!gridStaffs.success()){ | 
					 | 
					 | 
					        if (!gridStaffs.success()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_GRID); | 
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_GRID); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (gridStaffs.getData().size() == NumConstant.ZERO){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            return new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return this.getStaffList(gridStaffs.getData()); | 
					 | 
					 | 
					        return this.getStaffList(gridStaffs.getData()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -65,6 +67,9 @@ public class OpenUpServiceImpl implements OpenUpService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (!departmentStaffs.success()){ | 
					 | 
					 | 
					        if (!departmentStaffs.success()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_DEPARTMENT); | 
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_DEPARTMENT); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (departmentStaffs.getData().size() == NumConstant.ZERO){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            return new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<StaffSinGridResultDTO> data = this.getStaffList(departmentStaffs.getData()); | 
					 | 
					 | 
					        List<StaffSinGridResultDTO> data = this.getStaffList(departmentStaffs.getData()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<StaffSinDeptResultDTO> result = new ArrayList<>(); | 
					 | 
					 | 
					        List<StaffSinDeptResultDTO> result = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        data.forEach(staff -> { | 
					 | 
					 | 
					        data.forEach(staff -> { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -89,6 +94,9 @@ public class OpenUpServiceImpl implements OpenUpService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (!agencyStaffs.success()){ | 
					 | 
					 | 
					        if (!agencyStaffs.success()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_AGENCY); | 
					 | 
					 | 
					            throw new RenException(ModuleConstant.ERROR_GOV_ORG_AGENCY); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (agencyStaffs.getData().size() == NumConstant.ZERO){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            return new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<StaffSinGridResultDTO> staffList = this.getStaffList(agencyStaffs.getData()); | 
					 | 
					 | 
					        List<StaffSinGridResultDTO> staffList = this.getStaffList(agencyStaffs.getData()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<StaffSinAgencyResultDTO> result = new ArrayList<>(); | 
					 | 
					 | 
					        List<StaffSinAgencyResultDTO> result = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        staffList.forEach(staff -> { | 
					 | 
					 | 
					        staffList.forEach(staff -> { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |