소스 검색

基础技能课,和线上基础技能课人数不能小于3大于6人

周箭河 4 년 전
부모
커밋
cac7f7202d
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/ClassGroupStudentMapperServiceImpl.java

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

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