Browse Source

Merge remote-tracking branch 'origin/wn_j' into ywx

tags/正式版本
雍文秀 2 years ago
parent
commit
033e0c7219

+ 48
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EScanbatch.java View File

@@ -0,0 +1,48 @@
1
+package com.xhkjedu.sexam.model.paperstudent;
2
+
3
+import com.xhkjedu.sexam.model.BaseBean;
4
+import lombok.Data;
5
+
6
+import javax.persistence.Id;
7
+import javax.persistence.Table;
8
+
9
+/**
10
+ * @Description: 扫描答题卡批次表
11
+ * @Author: wn
12
+ * @CreateTime: 2022-08-11  09:06
13
+ */
14
+@Data
15
+@Table(name = "e_scanbatch")
16
+public class EScanbatch extends BaseBean {
17
+    @Id
18
+    private Integer batchid;
19
+
20
+    //扫描批次名称
21
+    private String batchname;
22
+
23
+    //考试id
24
+    private Integer examid;
25
+
26
+    //试卷id
27
+    private Integer epid;
28
+
29
+    //批次应扫张数
30
+    private Integer batchnum;
31
+
32
+    //扫描数量
33
+    private Integer scannum;
34
+
35
+    //扫描出错数量
36
+    private Integer errornum;
37
+
38
+    //缺考数量
39
+    private Integer qknum;
40
+
41
+    //违规数量
42
+    private Integer wgnum;
43
+
44
+    //创建时间
45
+    private Integer createtime;
46
+
47
+
48
+}

+ 29
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EScanerror.java View File

@@ -0,0 +1,29 @@
1
+package com.xhkjedu.sexam.model.paperstudent;
2
+
3
+import com.xhkjedu.sexam.model.BaseBean;
4
+import lombok.Data;
5
+
6
+import javax.persistence.Id;
7
+import javax.persistence.Table;
8
+
9
+/**
10
+ * @Description: TODO 扫描出错信息
11
+ * @Author: wn
12
+ * @CreateTime: 2022-08-11  09:24
13
+ */
14
+@Data
15
+@Table(name = "e_scanerror")
16
+public class EScanerror extends BaseBean {
17
+    @Id
18
+    private Integer serrorid;
19
+
20
+    //扫描批次id
21
+    private Integer batchid;
22
+
23
+    //错误类型
24
+    private Integer errortype;
25
+
26
+    //错误内容
27
+    private String errorjson;
28
+
29
+}

+ 2
- 2
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java View File

@@ -323,7 +323,7 @@ public class EPaperStudentService {
323 323
     @Transactional(rollbackFor = Exception.class)
324 324
     public void saveCommitPaper(Integer epsid){
325 325
         EPaperStudent ps = ePaperStudentMapper.selectByPrimaryKey(epsid);
326
-        if(ps == null || ps.getSstate() == 1){
326
+        if(ps == null || ps.getSstate() == 2){
327 327
             return;
328 328
         }
329 329
         EPaperStudent paperStudent = new EPaperStudent();
@@ -368,7 +368,7 @@ public class EPaperStudentService {
368 368
         List<EPaperStudentQuestion> sqlist = pswvo.getQuestions();//学生提交试卷中试题
369 369
         EPaperStudent ps = ePaperStudentMapper.selectByPrimaryKey(pswvo.getEpsid());
370 370
         //试卷不存在或者已提交
371
-        if(ps == null || ps.getSstate() == 1){
371
+        if(ps == null || ps.getSstate() == 2){
372 372
             return;
373 373
         }
374 374
         //获取试卷中所有试题答案及分值

Loading…
Cancel
Save