|
@@ -39,6 +39,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.TransactionStatus;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
@@ -5844,7 +5845,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
Date date = new Date();
|
|
|
Integer classGroupId = groupDto.getClassGroupId();
|
|
|
String musicGroupId = groupDto.getMusicGroupId();
|
|
|
- CourseScheduleType type = groupDto.getType();
|
|
|
+ CourseScheduleType type = groupDto.getCourseScheduleType();
|
|
|
List<CourseTimeDto> courseTimeDtoList = groupDto.getCourseTimeDtoList();
|
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
|
|
@@ -5974,7 +5975,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
courseSchedule.setUpdateTime(date);
|
|
|
courseSchedule.setTeachMode(teachMode);
|
|
|
courseSchedule.setMusicGroupId(musicGroupId);
|
|
|
- courseSchedule.setType(groupDto.getType());
|
|
|
+ courseSchedule.setType(groupDto.getCourseScheduleType());
|
|
|
courseSchedule.setName(subjectNames + "-" + courseConvertSumDto.getCourseType().getMsg());
|
|
|
courseSchedule.setGroupType(groupDto.getGroupType());
|
|
|
courseSchedule.setTeacherId(teacherId);
|
|
@@ -5997,7 +5998,6 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
|
|
|
//老师结算表
|
|
|
if (!groupDto.getAllowZeroSalary() && courseScheduleTeacherSalaryList.stream().anyMatch(e->e.getExpectSalary().compareTo(BigDecimal.ZERO) == 0)) {
|
|
|
- TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
return BaseController.failed(HttpStatus.MULTI_STATUS, "当前课程课酬预计为0,是否继续");
|
|
|
}
|
|
|
groupDto.getCourseScheduleTeacherSalaryList().addAll(courseScheduleTeacherSalaryList);
|