|
@@ -12,9 +12,9 @@ import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamStudent;
|
|
|
+import cn.com.qmth.stmms.biz.exam.query.ExamStudentSearchQuery;
|
|
|
import cn.com.qmth.stmms.biz.exam.service.ExamStudentService;
|
|
|
import cn.com.qmth.stmms.biz.school.model.School;
|
|
|
import cn.com.qmth.stmms.biz.school.service.SchoolService;
|
|
@@ -44,10 +44,12 @@ public class StudentScoreController {
|
|
|
|
|
|
@RequestMapping(value = "/{schoolId}/query", method = RequestMethod.POST)
|
|
|
public String getSubject(Model model, HttpServletRequest request, @PathVariable Integer schoolId,
|
|
|
- @RequestParam String studentCode, @RequestParam String name) {
|
|
|
- List<ExamStudent> list = studentService.findBySchoolIdAndStudentCodeAndName(schoolId, studentCode.trim(),
|
|
|
- name.trim());
|
|
|
+ ExamStudentSearchQuery query) {
|
|
|
+ List<ExamStudent> list = studentService.findBySchoolIdAndStudentCodeAndName(schoolId, query.getStudentCode(),
|
|
|
+ query.getName(), query);
|
|
|
+ model.addAttribute("school", schoolService.findById(schoolId));
|
|
|
model.addAttribute("list", list);
|
|
|
+ model.addAttribute("query", query);
|
|
|
return "modules/student/list";
|
|
|
}
|
|
|
|