|
|
@@ -205,7 +205,10 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
@Override
|
|
|
public Long subscribeNext(ExamApplyQueryBo bo) {
|
|
|
Integer countHaveSubscribeNext = baseMapper.countHaveSubscribeNext(bo);
|
|
|
- if (bo.getApplyStatus().equals(2) && countHaveSubscribeNext > 0){
|
|
|
+ if (bo.getApplyStatus().equals(2) && countHaveSubscribeNext < 1){
|
|
|
+ throw new IllegalArgumentException("系统检索到您不符合【补考学员】的报名条件,请重新选择!");
|
|
|
+ }
|
|
|
+ if (bo.getApplyStatus().equals(1) && countHaveSubscribeNext > 0){
|
|
|
throw new IllegalArgumentException("系统检索到您不符合【非补考学员】的报名条件,请重新选择!");
|
|
|
}
|
|
|
//查询剩余考试次数
|