|
@@ -1,10 +1,14 @@
|
1
|
1
|
package com.xhkjedu.sexam.controller.paperstudent;
|
2
|
2
|
|
|
3
|
+import com.github.pagehelper.PageHelper;
|
|
4
|
+import com.github.pagehelper.PageInfo;
|
3
|
5
|
import com.xhkjedu.sexam.model.exam.ESubject;
|
4
|
6
|
import com.xhkjedu.sexam.model.paperstudent.EPaperStudent;
|
5
|
7
|
import com.xhkjedu.sexam.model.paperstudent.EScanbatch;
|
6
|
8
|
import com.xhkjedu.sexam.service.paperstudent.EScanbatchService;
|
7
|
9
|
import com.xhkjedu.utils.N_Utils;
|
|
10
|
+import com.xhkjedu.utils.PageUtil;
|
|
11
|
+import com.xhkjedu.vo.PageResult;
|
8
|
12
|
import com.xhkjedu.vo.ResultVo;
|
9
|
13
|
import org.springframework.web.bind.annotation.PostMapping;
|
10
|
14
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -12,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
12
|
16
|
import org.springframework.web.bind.annotation.RestController;
|
13
|
17
|
|
14
|
18
|
import javax.annotation.Resource;
|
|
19
|
+import java.util.List;
|
15
|
20
|
import java.util.Map;
|
16
|
21
|
|
17
|
22
|
/**
|
|
@@ -81,4 +86,25 @@ public class EScanbatchController {
|
81
|
86
|
return new ResultVo(0, "获取成功", map);
|
82
|
87
|
}
|
83
|
88
|
|
|
89
|
+ /**
|
|
90
|
+ * 扫描答题卡详情-学生列表
|
|
91
|
+ *
|
|
92
|
+ * @return com.xhkjedu.vo.ResultVo
|
|
93
|
+ * @Param [eps]
|
|
94
|
+ * @Author ywx
|
|
95
|
+ * @Date 2022/8/15 16:15
|
|
96
|
+ **/
|
|
97
|
+ @PostMapping("/list_ss")
|
|
98
|
+ public ResultVo listScanStu(@RequestBody EPaperStudent eps) {
|
|
99
|
+ Integer epid = eps.getEpid();
|
|
100
|
+ Integer sstate = eps.getSstate();
|
|
101
|
+ Integer page = eps.getPage();
|
|
102
|
+ Integer pageSize = eps.getPageSize();
|
|
103
|
+ N_Utils.validation(new Object[]{epid, "试卷id", 1, sstate, "扫描状态", 1
|
|
104
|
+ , page, "页码", 1, pageSize, "显示条数", 1});
|
|
105
|
+ PageHelper.startPage(page, pageSize);
|
|
106
|
+ List<Map> list = eScanbatchService.listScanStu(epid, sstate, eps.getCreatename());
|
|
107
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
|
|
108
|
+ return new ResultVo(0, "获取成功", pageResult);
|
|
109
|
+ }
|
84
|
110
|
}
|