刘俊驰 2 dagen geleden
bovenliggende
commit
db0464deb5

+ 3 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseGroupServiceImpl.java

@@ -1560,6 +1560,9 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
                             .set(CourseSchedule::getStatus, CourseScheduleEnum.CANCEL.getCode())
                     );
 
+                    //退款
+                    this.refund(courseGroup);
+
                     // 小组课成课推送
                     if (courseGroup.getType().equals(CourseScheduleEnum.GROUP.getCode())) {
 
@@ -1573,8 +1576,6 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
                         this.sendStudentMessage(userIds, courseGroup);
                     }
 
-                    //退款
-                    this.refund(courseGroup);
                 }
                 courseGroup.setUpdatedTime(new Date());
                 this.updateById(courseGroup);