|
@@ -1588,6 +1588,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
//线上小班课
|
|
|
if(classGroup4MixDto.getCourseType().equals(CourseSchedule.CourseScheduleType.HIGH_ONLINE)){
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupNormalStudentNum(classGroupTeacherMapper.getClassGroupId());
|
|
|
+ if (studentNum < 3 || studentNum > 5) {
|
|
|
+ String numWaring = studentNum < 3 ? "人数不能小于3," : "人数不能大于5,";
|
|
|
+ throw new BizException(classGroup.getName() + numWaring + "请调整");
|
|
|
+ }
|
|
|
salary = JSON.parseObject(teacherDefaultMusicGroupSalary.getSalaryRuleJson()).getBigDecimal(studentNum.toString());
|
|
|
}
|
|
|
|
|
@@ -1878,6 +1882,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
//线上小班课
|
|
|
if(classGroup4MixDto.getCourseType().equals(CourseSchedule.CourseScheduleType.HIGH_ONLINE)){
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupNormalStudentNum(classGroupTeacherMapper.getClassGroupId());
|
|
|
+ if (studentNum < 3 || studentNum > 5) {
|
|
|
+ String numWaring = studentNum < 3 ? "人数不能小于3," : "人数不能大于5,";
|
|
|
+ throw new BizException(classGroup.getName() + numWaring + "请调整");
|
|
|
+ }
|
|
|
salary = JSON.parseObject(teacherDefaultMusicGroupSalary.getSalaryRuleJson()).getBigDecimal(studentNum.toString());
|
|
|
}
|
|
|
|
|
@@ -2140,6 +2148,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
//线上小班课
|
|
|
if(classGroup4MixDto.getCourseType().equals(CourseSchedule.CourseScheduleType.HIGH_ONLINE)){
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupNormalStudentNum(classGroupTeacherMapper.getClassGroupId());
|
|
|
+ if (studentNum < 3 || studentNum > 5) {
|
|
|
+ String numWaring = studentNum < 3 ? "人数不能小于3," : "人数不能大于5,";
|
|
|
+ throw new BizException(classGroup.getName() + numWaring + "请调整");
|
|
|
+ }
|
|
|
salary = JSON.parseObject(teacherDefaultMusicGroupSalary.getSalaryRuleJson()).getBigDecimal(studentNum.toString());
|
|
|
}
|
|
|
|