|
@@ -844,12 +844,13 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
throw new BizException("操作失败:当前还有学员未考试");
|
|
|
}
|
|
|
//没有未评审的学员
|
|
|
- HashMap<String,Object> map = new HashMap();
|
|
|
- map.put("reviewFlag",0);
|
|
|
- map.put("teacherId",examRoom.getMainTeacherUserId());
|
|
|
- int i = examReviewDao.countExamReviewRecordList(map);
|
|
|
+// HashMap<String,Object> map = new HashMap();
|
|
|
+// map.put("reviewFlag",0);
|
|
|
+// map.put("teacherId",examRoom.getMainTeacherUserId());
|
|
|
+// examReviewDao.countExamReviewRecordList(map);
|
|
|
+ int i = examReviewDao.getCloseFlag(examRoomId);
|
|
|
if(i > 0){
|
|
|
- throw new BizException("操作失败:存在未评审的学员");
|
|
|
+ throw new BizException("操作失败:还有老师没完成评审");
|
|
|
}
|
|
|
// imFeignService.dismissGroup(sysUser.getId().toString(),examRoomId.toString());
|
|
|
studentExamResultService.calculateStudentExamAvgScore(examRoomId);
|