|
@@ -1586,6 +1586,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());
|
|
|
}
|
|
|
|
|
@@ -1876,6 +1880,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());
|
|
|
}
|
|
|
|
|
@@ -2138,6 +2146,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());
|
|
|
}
|
|
|
|