|
@@ -5,9 +5,10 @@ import com.xhkjedu.model.EPaperStudent0608;
|
5
|
5
|
import com.xhkjedu.service.EPaperVerifyService;
|
6
|
6
|
import com.xhkjedu.utils.N_Utils;
|
7
|
7
|
import com.xhkjedu.vo.ResultVo;
|
8
|
|
-import lombok.val;
|
9
|
8
|
import org.springframework.web.bind.annotation.PostMapping;
|
10
|
9
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
10
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
11
|
+import org.springframework.web.bind.annotation.RestController;
|
11
|
12
|
|
12
|
13
|
import javax.annotation.Resource;
|
13
|
14
|
import java.util.List;
|
|
@@ -19,6 +20,8 @@ import java.util.Map;
|
19
|
20
|
* @description 考卷校验
|
20
|
21
|
* @date 2024/6/8 14:36
|
21
|
22
|
**/
|
|
23
|
+@RestController
|
|
24
|
+@RequestMapping("/ev")
|
22
|
25
|
public class EPaperVerifyController {
|
23
|
26
|
@Resource
|
24
|
27
|
private EPaperVerifyService ePaperVerifyService;
|
|
@@ -29,7 +32,7 @@ public class EPaperVerifyController {
|
29
|
32
|
Integer examid = student.getExamid();
|
30
|
33
|
String studentname = student.getStudentname();
|
31
|
34
|
N_Utils.validation(new Object[]{examid, "考试id", 1, studentname, "姓名", 2});
|
32
|
|
- List<Map> list = ePaperVerifyService.listStudentByStudentname(examid, studentname);
|
|
35
|
+ List<Map> list = ePaperVerifyService.listStudentByStudentname(examid, studentname, student.getClassid());
|
33
|
36
|
return new ResultVo(0, "获取成功!", list);
|
34
|
37
|
}
|
35
|
38
|
|