|
@@ -393,14 +393,13 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
|
|
|
List<ClassGroupStudentMapper> classGroupStudents = classGroupStudentMapperDao.findAllByClassGroup(classGroupId);
|
|
|
|
|
|
- if (classGroupStudents.size() <= 0 && (classGroup.getType().equals(ClassGroupTypeEnum.HIGH) ||
|
|
|
- classGroup.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE))) {
|
|
|
- String errTips = classGroup.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE) ? "线上基础技能班" : "基础技能班";
|
|
|
+ //线上基础技能班,原始分班人数不能小于3人大于6人
|
|
|
+ if (classGroupStudents.size() <= 0 && classGroup.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE)) {
|
|
|
if (studentIds.size() < 3) {
|
|
|
- throw new BizException(errTips + "人数不能小于3人");
|
|
|
+ throw new BizException("线上基础技能班人数不能小于3人");
|
|
|
}
|
|
|
if (studentIds.size() > 6) {
|
|
|
- throw new BizException(errTips + "人数不能大于6人");
|
|
|
+ throw new BizException("线上基础技能班人数不能大于6人");
|
|
|
}
|
|
|
}
|
|
|
|