Преглед на файлове

视频监控

tags/正式3.7.0
雍文秀 преди 2 години
родител
ревизия
1523f73466

+ 39
- 0
sexam/src/main/java/com/xhkjedu/sexam/controller/exam/ESubjectBadstudentController.java Целия файл

@@ -242,4 +242,43 @@ public class ESubjectBadstudentController {
242 242
         Map map = eSubjectBadstudentService.getJkGk(invigilate);
243 243
         return new ResultVo(0, "获取成功", map);
244 244
     }
245
+
246
+    /**
247
+     * 视频监控-学生列表(带违规数量)
248
+     *
249
+     * @return com.xhkjedu.vo.ResultVo
250
+     * @Param [invigilate]
251
+     * @Author ywx
252
+     * @Date 2022/12/30 12:18
253
+     **/
254
+    @PostMapping("/jk_xs3")
255
+    public ResultVo listJkStu3(@RequestBody ESubjectInvigilate invigilate) {
256
+        Integer esid = invigilate.getEsid();
257
+        Integer classid = invigilate.getClassid();
258
+        N_Utils.validation(new Object[]{esid, "考试科目id", 1, classid, "班级id", 1});
259
+        List<Map> list = eSubjectBadstudentService.listStu3(invigilate);
260
+        return new ResultVo(0, "获取成功", list);
261
+    }
262
+
263
+    /**
264
+     * 视频监控-学生照片详情
265
+     *
266
+     * @return com.xhkjedu.vo.ResultVo
267
+     * @Param [bs]
268
+     * @Author ywx
269
+     * @Date 2022/12/30 12:29
270
+     **/
271
+    @PostMapping("/list_xszp")
272
+    public ResultVo listXsZp(@RequestBody ESubjectBadstudent bs) {
273
+        Integer esid = bs.getEsid();
274
+        Integer studentid = bs.getStudentid();
275
+        Integer page = bs.getPage();
276
+        Integer pageSize = bs.getPageSize();
277
+        N_Utils.validation(new Object[]{esid, "考试科目id", 1, studentid, "学生id", 1
278
+                , page, "页码", 1, pageSize, "显示条数", 1});
279
+        PageHelper.startPage(page, pageSize);
280
+        List<Map> list = eSubjectBadstudentService.listXsZp(bs);
281
+        PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
282
+        return new ResultVo(0, "获取成功", pageResult);
283
+    }
245 284
 }

+ 6
- 3
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/ESubjectBadstudentMapper.java Целия файл

@@ -21,9 +21,12 @@ public interface ESubjectBadstudentMapper extends TkMapper<ESubjectBadstudent> {
21 21
     //试卷学生异常记录
22 22
     List<Map> listBadStu(@Param("ei") ESubjectInvigilate ei);
23 23
 
24
-    //学生违纪行为分析详情
25
-    List<Map> listBad(@Param("studentid") Integer studentid, @Param("examid") Integer examid);
26
-
27 24
     //监考学生
28 25
     List<Map> listStu2(@Param("ei") ESubjectInvigilate ei);
26
+
27
+    //视频监控-学生列表(带违规数量)
28
+    List<Map> listStu3(@Param("ei") ESubjectInvigilate ei);
29
+
30
+    //视频监控-学生照片详情
31
+    List<Map> listXsZp(@Param("bs") ESubjectBadstudent bs);
29 32
 }

+ 10
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/exam/ESubjectBadstudentService.java Целия файл

@@ -111,4 +111,14 @@ public class ESubjectBadstudentService {
111 111
     public Map getJkGk(ESubjectInvigilate ei) {
112 112
         return eSubjectBadstudentMapper.getPaperRate(ei);//学生进场概况
113 113
     }
114
+
115
+    //视频监控-学生列表(带违规数量)
116
+    public List<Map> listStu3(ESubjectInvigilate ei) {
117
+        return eSubjectBadstudentMapper.listStu3(ei);
118
+    }
119
+
120
+    //视频监控-学生照片详情
121
+    public List<Map> listXsZp(ESubjectBadstudent bs) {
122
+        return eSubjectBadstudentMapper.listXsZp(bs);
123
+    }
114 124
 }

+ 21
- 0
sexam/src/main/resources/mapper/exam/ESubjectBadstudentMapper.xml Целия файл

@@ -68,4 +68,25 @@
68 68
         </if>
69 69
         order by convert(u.username using gbk),u.userid
70 70
     </select>
71
+    <!--视频监控-学生列表(带违规数量)-->
72
+    <select id="listStu3" resultType="java.util.Map">
73
+        select es.classid,es.sstate,u.username,u.headpic,es.studentid
74
+        ,(select count(sb.esbsid) from e_subject_badstudent sb where sb.esid=es.esid and sb.studentid=es.studentid)num
75
+        from e_paper_student es left join t_user u on es.studentid = u.userid
76
+        where es.esid=#{ei.esid} and es.classid=#{ei.classid}
77
+        <if test="ei.sstate!=null">
78
+            and es.sstate=#{ei.sstate}
79
+        </if>
80
+        <if test="ei.createname!=null and ei.createname!=''">
81
+            and u.username like '%${ei.createname}%'
82
+        </if>
83
+        order by convert(u.username using gbk),u.userid
84
+    </select>
85
+    <!--视频监控-学生照片详情-->
86
+    <select id="listXsZp" resultType="java.util.Map">
87
+        select es.classid,es.studentid,es.badtype,es.picpath,es.createtime
88
+        from e_subject_badstudent es
89
+        where es.esid=#{bs.esid} and es.studentid=#{bs.studentid}
90
+        order by es.esbsid desc
91
+    </select>
71 92
 </mapper>

Loading…
Отказ
Запис