|
@@ -494,6 +494,17 @@ public class MsScanbatchPaperService {
|
494
|
494
|
return msScanbatchPaperMapper.listScanPaperErrors(msScanbatchPaper);
|
495
|
495
|
}
|
496
|
496
|
|
|
497
|
+ /*
|
|
498
|
+ * @Description 扫描异常-异常列表-数量
|
|
499
|
+ * @Date 2024/11/11 10:29:09
|
|
500
|
+ * @Author WN
|
|
501
|
+ * @Param [mpid]
|
|
502
|
+ * @Return java.util.Map<java.lang.String,java.lang.Object>
|
|
503
|
+ **/
|
|
504
|
+ public Map<String,Object> listScanPaperErrorNum(Integer mpid){
|
|
505
|
+ return msScanbatchPaperMapper.listScanPaperErrorsNum(mpid);
|
|
506
|
+ }
|
|
507
|
+
|
497
|
508
|
/*
|
498
|
509
|
* @Description 扫描异常-更改状态
|
499
|
510
|
* @Date 2024/11/8 15:28:47
|
|
@@ -523,7 +534,16 @@ public class MsScanbatchPaperService {
|
523
|
534
|
* @Param [psWebVo]
|
524
|
535
|
* @Return void
|
525
|
536
|
**/
|
|
537
|
+ @Transactional(rollbackFor = Exception.class)
|
526
|
538
|
public void updateExamnoConfirm(PaperStudentWebVo psWebVo) throws Exception{
|
|
539
|
+ //判断新考号情况
|
|
540
|
+ chandleExamnoConfirm(psWebVo);
|
|
541
|
+ //标记要确认的信息为已处理
|
|
542
|
+ msScanbatchPaperMapper.updateScanPaperMsstateAndExamno(psWebVo.getMspid(),2,psWebVo.getExamno());
|
|
543
|
+ }
|
|
544
|
+
|
|
545
|
+ //扫描异常-考确认新考号
|
|
546
|
+ private void chandleExamnoConfirm(PaperStudentWebVo psWebVo) throws Exception{
|
527
|
547
|
//根据考号获取用户id
|
528
|
548
|
Integer userid = userMapper.getUseridByExamno(psWebVo.getExamno());
|
529
|
549
|
if(!N_Utils.isTrueInteger(userid)){
|
|
@@ -535,7 +555,14 @@ public class MsScanbatchPaperService {
|
535
|
555
|
//如果新考号对应学生已有扫描信息,标记要处理的扫描试卷和新考号学生都为考号重复;异常类型1扫描出错 2考号有误 3考号重复 4缺考异常
|
536
|
556
|
if(N_Utils.isTrueInteger(msPaperStudent.getMspid())){
|
537
|
557
|
msScanbatchPaperMapper.updatePaperErrortype(psWebVo.getMspid(),3);//更改要处理的数据为3考号重复
|
538
|
|
- clearPaperStudentQuestionAnswer(msPaperStudent);//标记要处理的学生试卷信息为3考号重复
|
|
558
|
+
|
|
559
|
+ //标记确认考号对应学生扫描试卷信息为3考号重复
|
|
560
|
+ msScanbatchPaperMapper.updatePaperErrortype(msPaperStudent.getMspid(),3);
|
|
561
|
+ Integer mpsid = msPaperStudent.getMpsid();
|
|
562
|
+ //清空试卷信息
|
|
563
|
+ msPaperStudentMapper.updateStuPaperForScanErrorClear(mpsid);
|
|
564
|
+ //清空试卷题块、试题
|
|
565
|
+ msPaperStudentBlockMapper.updateStudentBlockQuestionByMpsid(mpsid);
|
539
|
566
|
}else{
|
540
|
567
|
MsScanbatchPaper msScanbatchPaper = msScanbatchPaperMapper.selectByPrimaryKey(psWebVo.getMspid());
|
541
|
568
|
List<MsScanbatchPaperBlock> blocks = msScanbatchPaperBlockMapper.listBlockQuestions(psWebVo.getMspid());
|
|
@@ -552,15 +579,43 @@ public class MsScanbatchPaperService {
|
552
|
579
|
}
|
553
|
580
|
}
|
554
|
581
|
|
555
|
|
- //扫描异常-考号重复-清空学生答案
|
556
|
|
- private void clearPaperStudentQuestionAnswer(MsPaperStudent msPaperStudent){
|
557
|
|
- //标记确认考号对应学生扫描试卷信息为3考号重复
|
558
|
|
- msScanbatchPaperMapper.updatePaperErrortype(msPaperStudent.getMspid(),3);
|
559
|
|
- Integer mpsid = msPaperStudent.getMpsid();
|
560
|
|
- //清空试卷信息
|
561
|
|
- msPaperStudentMapper.updateStuPaperForScanErrorClear(mpsid);
|
562
|
|
- //清空试卷题块、试题
|
563
|
|
- msPaperStudentBlockMapper.updateStudentBlockQuestionByMpsid(mpsid);
|
|
582
|
+ /*
|
|
583
|
+ * @Description 扫描异常--考号重复确认
|
|
584
|
+ * @Date 2024/11/11 9:35:46
|
|
585
|
+ * @Author WN
|
|
586
|
+ * @Param [psWebVo]
|
|
587
|
+ * @Return void
|
|
588
|
+ **/
|
|
589
|
+ @Transactional(rollbackFor = Exception.class)
|
|
590
|
+ public void updateExamnoRepeatConfirm(PaperStudentWebVo psWebVo) throws Exception{
|
|
591
|
+ chandleExamnoConfirm(psWebVo);
|
|
592
|
+ //标记要确认的信息为已处理
|
|
593
|
+ msScanbatchPaperMapper.updateScanPaperMsstate(psWebVo.getMspid(),2);
|
|
594
|
+ }
|
|
595
|
+
|
|
596
|
+ /*
|
|
597
|
+ * @Description 扫描异常--缺考异常
|
|
598
|
+ * @Date 2024/11/11 10:10:10
|
|
599
|
+ * @Author WN
|
|
600
|
+ * @Param [list]
|
|
601
|
+ * @Return void
|
|
602
|
+ **/
|
|
603
|
+ @Transactional(rollbackFor = Exception.class)
|
|
604
|
+ public void updateMissExamConfirm(List<PaperStudentWebVo> list){
|
|
605
|
+ List<MsPaperStudent> pslist = new ArrayList<>();//保存需要设置为非缺考学生
|
|
606
|
+ for(PaperStudentWebVo psWebVo : list){
|
|
607
|
+ MsPaperStudent msPaperStudent = new MsPaperStudent();
|
|
608
|
+ msPaperStudent.setMspid(psWebVo.getMspid());
|
|
609
|
+ msPaperStudent.setSstate(2);
|
|
610
|
+ msPaperStudent.setMpid(psWebVo.getMpid());
|
|
611
|
+ pslist.add(msPaperStudent);
|
|
612
|
+ psWebVo.setMspstate(2);
|
|
613
|
+ }
|
|
614
|
+
|
|
615
|
+ //更改缺考学生为正常考试
|
|
616
|
+ msPaperStudentMapper.updateBatchStuPaperSstate(pslist);
|
|
617
|
+ //更改扫描信息里异常为已处理
|
|
618
|
+ msScanbatchPaperMapper.updateBatchScanPaperMspstate(list);
|
564
|
619
|
}
|
565
|
620
|
|
566
|
621
|
}
|