|
@@ -710,7 +710,10 @@ public class EduPracticeGroupServiceImpl implements EduPracticeGroupService{
|
|
|
courseScheduleDao.batchAddCourseSchedules(practiceCourses);
|
|
|
TeacherDefaultPracticeGroupSalary teacherDefaultPracticeGroupSalary = teacherDefaultPracticeGroupSalaryDao.findByTeacherAndCourseMinutes(practiceGroupBuyParams.getUserId(),practiceCourseMinutes);
|
|
|
BigDecimal teacherDefaultSalary=null;
|
|
|
- if(Objects.nonNull(teacherDefaultPracticeGroupSalary)&&PracticeGroupType.COME_ON_PACKAGE.equals(practiceGroupBuyParams.getType())){
|
|
|
+ if(PracticeGroupType.COME_ON_PACKAGE.equals(practiceGroupBuyParams.getType())){
|
|
|
+ if(Objects.isNull(teacherDefaultPracticeGroupSalary)){
|
|
|
+ throw new BizException("请设置老师课酬");
|
|
|
+ }
|
|
|
teacherDefaultSalary=teacherDefaultPracticeGroupSalary.getMainTeacherSalary();
|
|
|
}else{
|
|
|
teacherDefaultSalary = new BigDecimal(practiceCourseSalaryConfig.getParanValue());
|