Browse Source

扫码异常

tags/正式版本
王宁 2 years ago
parent
commit
4a36c8bbad

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

@@ -645,6 +645,8 @@ public class EPaperStudentService {
645 645
     public void sjKhConfirm(PaperStudentWebVo ps) throws Exception {
646 646
         saveCommitPaperForConfirm(ps);//保存试卷、考号确认扫描结果
647 647
         eScanerrorMapper.updateErrorStateExamno(ps.getSerrorid(), 1, ps.getExamno());//更新扫描出错记录为已处理
648
+        eScanbatchMapper.updateErrornum(ps.getBatchid());//更改未处理出错数量
649
+
648 650
     }
649 651
 
650 652
     //保存试卷、考号确认扫描结果
@@ -686,6 +688,7 @@ public class EPaperStudentService {
686 688
             if (!N_Utils.isEmptyInteger(errorObj.getSstate()) && errorObj.getSstate() == 3 && answerednum>0) {//缺考
687 689
                 updateScanErrorInfo(4, errorObj);
688 690
                 eScanbatchMapper.updateQknum(pswvo.getBatchid());//更改缺考异常数量
691
+                return;
689 692
             }
690 693
         }
691 694
     }
@@ -795,6 +798,7 @@ public class EPaperStudentService {
795 798
     public void khcfConfirm(PaperStudentWebVo ps) throws Exception {
796 799
         saveCommitPaperForConfirm(ps);//保存试卷、考号确认扫描结果
797 800
         eScanerrorMapper.updateErrorState(ps.getSerrorid(), 1);
801
+        eScanbatchMapper.updateErrornum(ps.getBatchid());//更改未处理出错数量
798 802
     }
799 803
 
800 804
     //缺考确认

+ 2
- 1
sexam/src/main/resources/mapper/paperstudent/EScanbatchMapper.xml View File

@@ -23,7 +23,8 @@
23 23
     </update>
24 24
     <!--更改出错数量-->
25 25
     <update id="updateErrornum">
26
-        update e_scanbatch set errornum=(select count(*) from e_scanerror e where e.batchid=#{batchid}) where batchid=#{batchid}
26
+        update e_scanbatch set errornum=
27
+    (select count(*) from e_scanerror e where e.batchid=#{batchid} and e.errorstate=0) where batchid=#{batchid}
27 28
     </update>
28 29
     <!--更改扫描和出错数量-->
29 30
     <update id="updateScanAndErrorNum">

+ 2
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java View File

@@ -274,7 +274,8 @@ public class PaperService {
274 274
             for (int i = 0; i < pfilelist.size(); i++) {
275 275
                 TPaperFile pf = pfilelist.get(i);
276 276
                 resourceUrls.add(pf.getFilepath());
277
-                if (i == 0) {
277
+
278
+                if(!resourceUrls.contains(pf.getSourcepath())){
278 279
                     resourceUrls.add(pf.getSourcepath());
279 280
                 }
280 281
             }

Loading…
Cancel
Save