|
@@ -8,8 +8,7 @@ import com.ym.mec.biz.dal.entity.Employee;
|
|
|
import com.ym.mec.biz.dal.entity.Teacher;
|
|
|
import com.ym.mec.biz.dal.page.StudentManageQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.StudentQueryInfo;
|
|
|
-import com.ym.mec.biz.service.StudentManageService;
|
|
|
-import com.ym.mec.biz.service.TeacherService;
|
|
|
+import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.page.QueryInfo;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -19,11 +18,10 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.ym.mec.biz.dal.page.StudentAttendanceQueryInfo;
|
|
|
-import com.ym.mec.biz.service.StudentAttendanceService;
|
|
|
-import com.ym.mec.biz.service.StudentRegistrationService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
|
|
|
import java.util.Arrays;
|
|
@@ -46,6 +44,8 @@ public class EduStudentStudentController extends BaseController {
|
|
|
@Autowired
|
|
|
private StudentManageService studentManageService;
|
|
|
@Autowired
|
|
|
+ private OrganizationService organizationService;
|
|
|
+ @Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Autowired
|
|
|
private EmployeeDao employeeDao;
|
|
@@ -77,8 +77,8 @@ public class EduStudentStudentController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取学生列表")
|
|
|
- @GetMapping("eduStudentManage/queryStudentList")
|
|
|
- public Object queryStudentList(StudentManageQueryInfo queryInfo){
|
|
|
+ @PostMapping("eduStudentManage/queryStudentList")
|
|
|
+ public Object queryStudentList(@RequestBody StudentManageQueryInfo queryInfo){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
return failed("用户信息获取失败");
|
|
@@ -111,4 +111,12 @@ public class EduStudentStudentController extends BaseController {
|
|
|
return succeed(studentManageService.findStudentsByOrganId(queryInfo));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取学生列表")
|
|
|
+ @PostMapping("eduStudentManage/queryStudentPage")
|
|
|
+ public Object queryStudentPage(@RequestBody StudentManageQueryInfo queryInfo){
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
+ queryInfo.setIsExport(false);
|
|
|
+ return succeed(studentManageService.findStudentsByOrganId(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
}
|