Pārlūkot izejas kodu

查询没有没有某种类型的班级的学生,可通过多声部过滤

周箭河 4 gadi atpakaļ
vecāks
revīzija
2a6c8d2dfe

+ 4 - 4
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ClassGroupStudentMapperServiceImpl.java

@@ -401,13 +401,13 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
         if (classGroup.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE)) {
             MusicGroup musicGroup = musicGroupDao.get(classGroup.getMusicGroupId());
             if (studentIds.size() < 3 && musicGroup.getStatus().equals(MusicGroupStatusEnum.PREPARE)) {
-                throw new BizException("线上基础技能班人数不能于3人");
+                throw new BizException("线上基础技能班人数不能s少于3人");
             }
-            if (studentIds.size() < 3 && !musicGroup.getStatus().equals(MusicGroupStatusEnum.PREPARE) && oldNormalStudentIds.size() <=0) {
-                throw new BizException("线上基础技能班人数不能于3人");
+            if (studentIds.size() < 3 && !musicGroup.getStatus().equals(MusicGroupStatusEnum.PREPARE) && oldNormalStudentIds.size() <= 0) {
+                throw new BizException("线上基础技能班人数不能于3人");
             }
             if (studentIds.size() > 6) {
-                throw new BizException("线上基础技能班人数不能于6人");
+                throw new BizException("线上基础技能班人数不能于6人");
             }
         }