|
@@ -722,6 +722,9 @@ public class CourseScheduleStudentPaymentServiceImpl extends BaseServiceImpl<Lon
|
|
|
if(statusCoursesMap.containsKey(CourseStatusEnum.NOT_START)){
|
|
|
List<CourseScheduleStudentPaymentDto> notStartCourses = statusCoursesMap.get(CourseStatusEnum.NOT_START);
|
|
|
for (CourseScheduleStudentPaymentDto notStartCourse : notStartCourses) {
|
|
|
+ if(Objects.isNull(notStartCourse.getActualPrice())){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
studentRegistrationService.updateUserSurplusCourseFee(notStartCourse.getUserId(), notStartCourse.getMusicGroupId(), notStartCourse.getActualPrice(), StringUtils.join("课程状态变更到未开始,退还缴费:", notStartCourse.getCourseScheduleId()), null);
|
|
|
notStartCourse.setActualPrice(BigDecimal.ZERO);
|
|
|
needUpdates.add(notStartCourse);
|