|  | @@ -10,6 +10,7 @@ import com.keao.edu.common.tenant.TenantContextHolder;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.entity.Employee;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.page.EmployeeQueryInfo;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.EmployeeService;
 | 
	
		
			
				|  |  | +import com.keao.edu.user.service.OrganizationService;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiImplicitParam;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
	
		
			
				|  | @@ -25,12 +26,17 @@ public class EmployeeController extends BaseController {
 | 
	
		
			
				|  |  |  	private EmployeeService employeeService;
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private SysUserFeignService sysUserFeignService;
 | 
	
		
			
				|  |  | +	@Autowired
 | 
	
		
			
				|  |  | +	private OrganizationService organizationService;
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	@ApiOperation("员工服务分页查询")
 | 
	
		
			
				|  |  |  	@GetMapping(value = "/list")
 | 
	
		
			
				|  |  |  	public HttpResponseResult<PageInfo<Employee>> getList(EmployeeQueryInfo queryInfo) {
 | 
	
		
			
				|  |  |  		SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |  		queryInfo.setUserId(sysUser.getId());
 | 
	
		
			
				|  |  | +		if(queryInfo.getOrganId() != null){
 | 
	
		
			
				|  |  | +			queryInfo.setOrganIds(organizationService.getChildOrganIds(queryInfo.getOrganId(),true));
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  		return succeed(employeeService.queryPage(queryInfo));
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 |