|
@@ -16,6 +16,7 @@ import com.keao.edu.user.api.enums.ExamModeEnum;
|
|
|
import com.keao.edu.user.dao.*;
|
|
|
import com.keao.edu.user.dto.ExamRoomDto;
|
|
|
import com.keao.edu.user.dto.ExamRoomStatisticsDto;
|
|
|
+import com.keao.edu.user.entity.ExamLifecycleLog;
|
|
|
import com.keao.edu.user.entity.ExamOrganizationRelation;
|
|
|
import com.keao.edu.user.entity.ExamRegistration;
|
|
|
import com.keao.edu.user.entity.ExaminationBasic;
|
|
@@ -59,6 +60,8 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
private StudentExamResultDao studentExamResultDao;
|
|
|
@Autowired
|
|
|
private ExamOrganizationRelationDao examOrganizationRelationDao;
|
|
|
+ @Autowired
|
|
|
+ private ExamLifecycleLogDao examLifecycleLogDao;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, ExamRoom> getDAO() {
|
|
@@ -266,12 +269,14 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void sendExamPlan(Integer organId, Integer examId) {
|
|
|
+ public void sendExamPlan(Integer organId, Integer examId, Integer operatorId) {
|
|
|
List<Integer> nextLevelOrganIds = organizationService.getNextLevelOrganIds(organId, true);
|
|
|
int withoutExamRoomStudentNum = examRegistrationDao.countWithoutExamRoomStudentNum(nextLevelOrganIds, examId);
|
|
|
if(withoutExamRoomStudentNum>0){
|
|
|
throw new BizException("存在未安排教室的学员");
|
|
|
}
|
|
|
+
|
|
|
+ examLifecycleLogDao.insert(new ExamLifecycleLog(examId, "确认考试安排", operatorId));
|
|
|
}
|
|
|
|
|
|
@Override
|