|
@@ -188,11 +188,11 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
throw new IllegalArgumentException("学时审核未通过,不可以报名参加考试");
|
|
|
}
|
|
|
Integer countSubscribe = baseMapper.countSubscribe(bo);
|
|
|
- if (countSubscribe > 1){
|
|
|
+ if (countSubscribe > 0){
|
|
|
throw new IllegalArgumentException("考试已通过,不需要重考");
|
|
|
}
|
|
|
Integer countHaveSubscribe = baseMapper.countHaveSubscribe(bo);
|
|
|
- if (countSubscribe > 1){
|
|
|
+ if (countSubscribe > 0){
|
|
|
throw new IllegalArgumentException("您所报考的专业,已经预约成功,您可在“我的-我的考试预约”中查询详情");
|
|
|
}
|
|
|
ExamUserApplyVo examUserApplyVo = baseMapper.selectExamUserApplyVo(bo);
|