|
@@ -184,8 +184,7 @@ public class ApplyTaskServiceImpl extends ServiceImpl<ApplyTaskDao, ApplyTaskEnt
|
|
lm.eq(StudentApplyEntity::getTimePeriodId, timeId);
|
|
lm.eq(StudentApplyEntity::getTimePeriodId, timeId);
|
|
lm.eq(StudentApplyEntity::getCancel, Boolean.FALSE);
|
|
lm.eq(StudentApplyEntity::getCancel, Boolean.FALSE);
|
|
|
|
|
|
- List<StudentApplyEntity> applyList = studentApplyService.list(lm);
|
|
|
|
- if (applyList != null && !applyList.isEmpty()) {
|
|
|
|
|
|
+ if (studentApplyService.count(lm) > 0) {
|
|
throw new StatusException("考生已经预约,不能删除预约时段");
|
|
throw new StatusException("考生已经预约,不能删除预约时段");
|
|
}
|
|
}
|
|
|
|
|