|
@@ -1683,12 +1683,6 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
Integer singleClssTime = arrangeCourseVo.getSingleClssTime();//单课时长
|
|
|
List<Long> studentIds = arrangeCourseVo.getStudentIds();//学员id集合
|
|
|
|
|
|
- //单课最小时长
|
|
|
-// 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包含老师
|
|
|
Integer consumTime = classNum * singleClssTime * n;//消耗时长 课程数*单课时长*人数
|