|
@@ -201,6 +201,12 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
|
throw new StatusException("考生不存在");
|
|
|
}
|
|
|
|
|
|
+ if (concurrentService.isLocked(CacheConstants.LOCK_AUTO_APPLY)) {
|
|
|
+ // 系统自动预约“任务执行期间”不允许取消预约
|
|
|
+ log.warn("系统自动预约中,不允许考生操作预约!lockKey:{}", CacheConstants.LOCK_AUTO_APPLY);
|
|
|
+ throw new StatusException(Constants.SYSTEM_BUSY);
|
|
|
+ }
|
|
|
+
|
|
|
// 教学点管理员,只能取消本教学点的考生
|
|
|
if (user.getRole().equals(Role.TEACHING) && !user.getCategoryId().equals(student.getCategoryId())) {
|
|
|
throw new StatusException("[cancel] 只能取消本教学点的考生");
|