|
@@ -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包含老师
|