Browse Source

根据姓名搜索学生信息

ywx
雍文秀 8 months ago
parent
commit
2cc19032f2

+ 2
- 1
src/main/java/com/xhkjedu/controller/EPaperVerifyController.java View File

32
     public ResultVo listStudentByStudentname(@RequestBody EClassStudent student) {
32
     public ResultVo listStudentByStudentname(@RequestBody EClassStudent student) {
33
         Integer examid = student.getExamid();
33
         Integer examid = student.getExamid();
34
         String studentname = student.getStudentname();
34
         String studentname = student.getStudentname();
35
-        N_Utils.validation(new Object[]{examid, "考试id", 1, studentname, "姓名", 2});
35
+        if(N_Utils.isEmpty(studentname)) return new ResultVo(0, "获取成功!", null);
36
+        N_Utils.validation(new Object[]{examid, "考试id", 1});
36
         List<Map> list = ePaperVerifyService.listStudentByStudentname(examid, studentname, student.getClassid());
37
         List<Map> list = ePaperVerifyService.listStudentByStudentname(examid, studentname, student.getClassid());
37
         return new ResultVo(0, "获取成功!", list);
38
         return new ResultVo(0, "获取成功!", list);
38
     }
39
     }

Loading…
Cancel
Save