Ver código fonte

推送云阅卷功能BUG修改

wangliang 2 anos atrás
pai
commit
a3c84d11c4

+ 0 - 8
themis-business/src/main/java/com/qmth/themis/business/templete/service/impl/TempleteLogicServiceImpl.java

@@ -371,16 +371,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
                 jsonObject.put("examRecordManyListSize", manyExamStudentIdSet.size());
                 tbTaskHistory.setRemark(jsonObject.toJSONString());
                 tbTaskHistoryService.updateById(tbTaskHistory);
-                if (teExamStudentList.size() != tOeExamRecordList.size() + manyExamStudentIdSet.size()) {
-                    throw new BusinessException("待阅卷的考试记录和考生数不匹配");
-                }
                 List<TOeExamRecord> resultExamRecordList = filterManyExamRecord(tOeExamRecordManyList, teExam);
                 tOeExamRecordList.addAll(resultExamRecordList);
-                //推送多次考试记录的考生
-            } else {
-                if (teExamStudentList.size() != tOeExamRecordList.size()) {
-                    throw new BusinessException("待阅卷的考试记录和考生数不匹配");
-                }
             }
 
             //推送考试记录的考生开始

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

@@ -476,7 +476,7 @@
     </select>
 
     <select id="findExamStudentNeedMarkAll" resultType="com.qmth.themis.business.entity.TEExamStudent">
-        select tees.* from t_e_exam_student tees
+        select distinct tees.* from t_e_exam_student tees
             join t_oe_exam_record toer
                 on toer.exam_id = tees.exam_id
                 and toer.exam_activity_id = tees.exam_activity_id