| 
					
				 | 
			
			
				@@ -5,6 +5,8 @@ import com.ym.mec.auth.api.client.SysUserFeignService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.auth.api.entity.SysUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.dao.EmployeeDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.entity.Employee; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.biz.dal.page.RepairStudentQueryInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.biz.service.StudentRepairService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.controller.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.entity.HttpResponseResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.exception.BizException; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18,8 +20,8 @@ import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@RequestMapping("eduPracticeGroup") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@Api(tags = "陪练课服务") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@RequestMapping("eduRepair") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@Api(tags = "教务维修服务") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class EduRepairController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -28,20 +30,23 @@ public class EduRepairController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private EmployeeDao employeeDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private StudentRepairService studentRepairService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiOperation("获取学生的陪练课") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("获取学生列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping(value = "/getStudents") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public HttpResponseResult getStudents() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpResponseResult getStudents(RepairStudentQueryInfo queryInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SysUser sysUser = sysUserFeignService.queryUserInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (sysUser == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return failed(HttpStatus.FORBIDDEN, "请登录"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Employee employee = employeeDao.get(sysUser.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(Objects.isNull(employee)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (Objects.isNull(employee)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return failed(HttpStatus.NOT_ACCEPTABLE, "员工信息不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        queryInfo.setEmployeeId(sysUser.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        queryInfo.setOrganIdList(employee.getOrganIdList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return succeed(studentRepairService.getStudents(queryInfo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |