Browse Source

注释判断题号重复

tags/正式版本
王宁 2 years ago
parent
commit
68af9be376

+ 2
- 2
sexam/src/main/java/com/xhkjedu/sexam/service/paper/EPaperQtypeService.java View File

71
         }
71
         }
72
 
72
 
73
         List<EPaperQtype> qtypelist = paper.getQtypelist();
73
         List<EPaperQtype> qtypelist = paper.getQtypelist();
74
-        if (paper.getPtype() == 2) {
74
+        /*if (paper.getPtype() == 2) {
75
             List<EPaperQtypeQuestion> questions = new ArrayList<>();
75
             List<EPaperQtypeQuestion> questions = new ArrayList<>();
76
             qtypelist.forEach(t -> {
76
             qtypelist.forEach(t -> {
77
                 questions.addAll(t.getQuestions());
77
                 questions.addAll(t.getQuestions());
78
             });
78
             });
79
             long count = questions.stream().map(q -> q.getQn()).distinct().count();
79
             long count = questions.stream().map(q -> q.getQn()).distinct().count();
80
             if (count < questions.size()) return new ResultVo(1, "题号不能重复");
80
             if (count < questions.size()) return new ResultVo(1, "题号不能重复");
81
-        }
81
+        }*/
82
 
82
 
83
         //说明已经有改考试对应的试卷,删除试卷中试题,试卷分析
83
         //说明已经有改考试对应的试卷,删除试卷中试题,试卷分析
84
         ePaperQtypeMapper.deleteByEpid(espVo.getEpid());
84
         ePaperQtypeMapper.deleteByEpid(espVo.getEpid());

Loading…
Cancel
Save