|
@@ -644,7 +644,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
for (ClassGroupTeachersDto classGroupAndTeacher : classGroupAndTeachers) {
|
|
|
Long studentNum = classGroupStudentNumMap.get(classGroupAndTeacher.getId());
|
|
|
studentNum = Objects.isNull(studentNum) ? 0 : studentNum;
|
|
|
- if(classGroupAndTeacher.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE) && studentNum < 3 || studentNum >5){
|
|
|
+ if(classGroupAndTeacher.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE) && (studentNum < 3 || studentNum > 5)){
|
|
|
String numWaring = studentNum < 3 ? "人数不能小于3\r\n" : "人数不能大于5\r\n";
|
|
|
waringStr += classGroupAndTeacher.getName()+numWaring;
|
|
|
}
|