瀏覽代碼

feat:线上基础技能课去掉3人限制

Joburgess 4 年之前
父節點
當前提交
a2cbb642e3

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

@@ -454,12 +454,12 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
         //线上基础技能班,原始分班人数不能小于3人大于6人
         if (classGroup.getType().equals(ClassGroupTypeEnum.HIGH_ONLINE)) {
 
-            if (studentIds.size() < 3 && musicGroup.getStatus().equals(MusicGroupStatusEnum.PREPARE)) {
-                throw new BizException("线上基础技能班人数不能少于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)) {
+//                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人");
             }