浏览代码

单课最小时长校验

cy 3 年之前
父节点
当前提交
877a224eec

+ 4 - 4
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseScheduleServiceImpl.java

@@ -1684,10 +1684,10 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
         List<Long> studentIds = arrangeCourseVo.getStudentIds();//学员id集合
 
         //单课最小时长
-        Integer minTime = Integer.valueOf(sysConfigService.findConfigValue(SysConfigConstant.PIANO_ROOM_TIME_FORMULA));
-        if (singleClssTime<minTime){
-            throw new BizException("单课最小时长不得低于{}分钟", minTime);
-        }
+//        Integer minTime = Integer.valueOf(sysConfigService.findConfigValue(SysConfigConstant.PIANO_ROOM_TIME_FORMULA));
+//        if (singleClssTime<minTime){
+//            throw new BizException("单课最小时长不得低于{}分钟", minTime);
+//        }
 
         String formula = sysConfigService.findConfigValue(SysConfigConstant.PIANO_ROOM_TIME_FORMULA);
         Integer n = (Integer) WrapperUtil.strToFormula(formula, "n", String.valueOf(studentIds.size() + 1));//人数计算 公式n*(n-1) n包含老师