Bladeren bron

添加字段

tags/正式版本
王宁 2 jaren geleden
bovenliggende
commit
b365bf6d0b

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/controller/paperstudent/EScanbatchController.java Bestand weergeven

@@ -28,7 +28,7 @@ public class EScanbatchController {
28 28
     //保持批次信息
29 29
     @PostMapping("/save")
30 30
     public ResultVo saveEscanbatch(@RequestBody EScanbatch eScanbatch) {
31
-        N_Utils.validation(new Object[]{eScanbatch.getEpid(),"试卷id",1,eScanbatch.getBatchname(),"设备",2});
31
+        N_Utils.validation(new Object[]{eScanbatch.getEpid(),"试卷id",1,eScanbatch.getMac(),"设备",2});
32 32
         Map map = eScanbatchService.saveScanBatch(eScanbatch);
33 33
         return new ResultVo(0, "成功保存", map);
34 34
     }

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EScanbatch.java Bestand weergeven

@@ -44,5 +44,8 @@ public class EScanbatch extends BaseBean {
44 44
     //创建时间
45 45
     private Integer createtime;
46 46
 
47
+    //扫描仪mac地址
48
+    private String mac;
49
+
47 50
 
48 51
 }

+ 7
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EScanerror.java Bestand weergeven

@@ -5,6 +5,7 @@ import lombok.Data;
5 5
 
6 6
 import javax.persistence.Id;
7 7
 import javax.persistence.Table;
8
+import java.util.List;
8 9
 
9 10
 /**
10 11
  * @Description: TODO 扫描出错信息
@@ -23,6 +24,12 @@ public class EScanerror extends BaseBean {
23 24
     //错误类型
24 25
     private Integer errortype;
25 26
 
27
+    //当前批次第几页
28
+    private Integer pagenum;
29
+
30
+    //学生答题未处理图片
31
+    private String stupic;
32
+
26 33
     //错误内容
27 34
     private String errorjson;
28 35
 

+ 2
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java Bestand weergeven

@@ -516,6 +516,7 @@ public class EPaperStudentService {
516 516
         EScanerror er = new EScanerror();
517 517
         er.setBatchid(pswvo.getBatchid());
518 518
         er.setErrortype(errortype);
519
+        er.setPagenum(pswvo.getPagenum());
519 520
         er.setErrorjson(JSON.toJSONString(pswvo));
520 521
         er.setCreatetime(N_Utils.getSecondTimestamp());
521 522
         eScanerrorMapper.insertSelective(er);
@@ -532,7 +533,7 @@ public class EPaperStudentService {
532 533
     public void saveScanPaperError(EScanerror eScanerror){
533 534
         eScanerror.setErrortype(1);
534 535
         eScanerror.setCreatetime(N_Utils.getSecondTimestamp());
535
-        eScanerrorMapper.insertSelective(eScanerror);
536
+        eScanerrorMapper.insertUseGeneratedKeys(eScanerror);
536 537
         eScanbatchMapper.updateErrornum(eScanerror.getBatchid());
537 538
     }
538 539
 

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EScanbatchService.java Bestand weergeven

@@ -31,7 +31,7 @@ public class EScanbatchService {
31 31
      * @date: 2022/8/11/011 9:42
32 32
      **/
33 33
     public Map saveScanBatch(EScanbatch eScanbatch){
34
-        String batchname = eScanbatch.getBatchname() + "-" + eScanbatch.getEpid() + "-";
34
+        String batchname = eScanbatch.getMac() + "-" + eScanbatch.getEpid() + "-";
35 35
         //获取数据库中该批次名的扫描批次数量
36 36
         Integer bnum = eScanbatchMapper.getBatchNameLikeNum(batchname);
37 37
         if(bnum == null || bnum == 0){

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/vo/paperstudent/PaperStudentWebVo.java Bestand weergeven

@@ -34,4 +34,6 @@ public class PaperStudentWebVo {
34 34
 
35 35
     private Integer batchid;//答题卡扫描批次
36 36
 
37
+    private Integer pagenum;//当前批次第几页
38
+
37 39
 }

Laden…
Annuleren
Opslaan