Browse Source

1、试听课
2、收费网管课活动

Joburgess 5 years ago
parent
commit
5ed5891bb4

+ 3 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -1130,7 +1130,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 		for (ClassGroupStudentMapper classGroupStudent : classGroupStudents) {
 			courseScheduleStudentPaymentService.createCourseScheduleStudentPaymentForVipGroup(vipGroupId,classGroupStudent.getUserId());
 			try {
-				teacherCourseRewardService.addConvertReward(classGroupStudent.getUserId(), vipGroupApplyBaseInfoDto.getUserId());
+				if(vipGroupApplyBaseInfoDto.getOnlineClassesNum()>0){
+					teacherCourseRewardService.addConvertReward(classGroupStudent.getUserId(), vipGroupApplyBaseInfoDto.getUserId());
+				}
 			} catch (Exception e) {
 				e.printStackTrace();
 			}