|
@@ -2654,9 +2654,14 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
}
|
|
|
ts.setExpectSalary(salary);
|
|
|
}
|
|
|
- if(StringUtils.isBlank(tdms.getSalaryRuleJson())){
|
|
|
- throw new BizException("请设置老师默认课酬");
|
|
|
- }
|
|
|
+
|
|
|
+ if((newCourseSchedule.getType() == CourseScheduleType.HIGH_ONLINE ||
|
|
|
+ newCourseSchedule.getType().equals(CourseSchedule.CourseScheduleType.MUSIC_NETWORK)) &&
|
|
|
+ StringUtils.isBlank(tdms.getSalaryRuleJson())
|
|
|
+ ){
|
|
|
+ throw new BizException("请设置老师默认课酬");
|
|
|
+ }
|
|
|
+
|
|
|
//线上小班课
|
|
|
if(newCourseSchedule.getType() == CourseScheduleType.HIGH_ONLINE){
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupNormalStudentNum(ts.getClassGroupId());
|