|
@@ -2652,18 +2652,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
courseScheduleStudentPayment.setCreateTime(now);
|
|
|
courseScheduleStudentPayment.setUpdateTime(now);
|
|
|
courseScheduleStudentPayments.add(courseScheduleStudentPayment);
|
|
|
-
|
|
|
-
|
|
|
- if(!CollectionUtils.isEmpty(classGroupStudentMappers)){
|
|
|
- classGroupStudentMapperDao.classGroupStudentsInsert(classGroupStudentMappers);
|
|
|
- if(vipGroup.getOnlineClassesNum()>0){
|
|
|
- try {
|
|
|
- teacherCourseRewardService.addConvertReward(studentId, vipGroup.getUserId());
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPayments);
|
|
|
|
|
@@ -2688,6 +2676,18 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
}
|
|
|
|
|
|
imGroupMemberList.add(new ImGroupMember(studentId.toString()));
|
|
|
+
|
|
|
+ if(vipGroup.getOnlineClassesNum()>0){
|
|
|
+ try {
|
|
|
+ teacherCourseRewardService.addConvertReward(studentId, vipGroup.getUserId());
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!CollectionUtils.isEmpty(classGroupStudentMappers)){
|
|
|
+ classGroupStudentMapperDao.classGroupStudentsInsert(classGroupStudentMappers);
|
|
|
}
|
|
|
|
|
|
VipGroupStatusEnum vipGroupStatus = vipGroup.getStatus();
|