|
@@ -718,13 +718,17 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
List<TimePeriodEntity> noCancelTimePeroidList = listNoCancelApplyTimePeroid(timePeriodList,
|
|
List<TimePeriodEntity> noCancelTimePeroidList = listNoCancelApplyTimePeroid(timePeriodList,
|
|
applyTask.getAllowApplyCancelDays());
|
|
applyTask.getAllowApplyCancelDays());
|
|
if (noCancelTimePeroidList.isEmpty()) {
|
|
if (noCancelTimePeroidList.isEmpty()) {
|
|
- log.info("当前时间不在取消预约范围内");
|
|
|
|
|
|
+ log.warn("当前时间不在取消预约范围内");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
// 2.查询考试日期的待排考的考生
|
|
// 2.查询考试日期的待排考的考生
|
|
List<StudentApplyEntity> toBeLayoutStudentList = this.baseMapper.listTimePeriod(
|
|
List<StudentApplyEntity> toBeLayoutStudentList = this.baseMapper.listTimePeriod(
|
|
noCancelTimePeroidList.stream().map(item -> item.getId()).collect(Collectors.toList()),
|
|
noCancelTimePeroidList.stream().map(item -> item.getId()).collect(Collectors.toList()),
|
|
Boolean.FALSE);
|
|
Boolean.FALSE);
|
|
|
|
+ if (toBeLayoutStudentList == null || toBeLayoutStudentList.isEmpty()) {
|
|
|
|
+ log.warn("没有待排考的考生");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
// 3.开始排考
|
|
// 3.开始排考
|
|
Map<Long, List<StudentApplyEntity>> toBeLayoutStudentMap = toBeLayoutStudentList.stream()
|
|
Map<Long, List<StudentApplyEntity>> toBeLayoutStudentMap = toBeLayoutStudentList.stream()
|
|
.collect(Collectors.groupingBy(StudentApplyEntity::getExamSiteId));
|
|
.collect(Collectors.groupingBy(StudentApplyEntity::getExamSiteId));
|
|
@@ -733,7 +737,8 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
.collect(Collectors.groupingBy(StudentApplyEntity::getTimePeriodId));
|
|
.collect(Collectors.groupingBy(StudentApplyEntity::getTimePeriodId));
|
|
List<ExamRoomEntity> roomList = listExamRoom(examSiteId);
|
|
List<ExamRoomEntity> roomList = listExamRoom(examSiteId);
|
|
if (roomList.isEmpty()) {
|
|
if (roomList.isEmpty()) {
|
|
- throw new StatusException(examSiteId + ":未设置考场");
|
|
|
|
|
|
+ log.warn(examSiteId + ":未设置考场");
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
ExamSiteEntity examSite = examSiteService.getById(examSiteId);
|
|
ExamSiteEntity examSite = examSiteService.getById(examSiteId);
|
|
layoutStudentByTimePeriod(applyTask.getId(), examSite, roomList, timeLayoutStudentMap);
|
|
layoutStudentByTimePeriod(applyTask.getId(), examSite, roomList, timeLayoutStudentMap);
|