|
@@ -3072,8 +3072,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
List<ActivityUserMapper> activityUserMappers = activityUserMapperService.getDao().findByStudents(studentIdList,vipGroup.getVipGroupCategoryId(),vipGroup.getSingleClassMinutes());
|
|
|
//获取学员赠送排课资格
|
|
|
List<ActivityUserMapper> freeActivityUserMappers = activityUserMapperService.getDao().findByStudents1(studentIdList,vipGroup.getVipGroupCategoryId(),vipGroup.getSingleClassMinutes());
|
|
|
- int j = 0;
|
|
|
- int a = 0;
|
|
|
+ BaseMapDto<Integer, Integer> indexDto = new BaseMapDto<>(0, 0);
|
|
|
for (int i = 0; i < surplusCourseWithGroup.size(); i++) {
|
|
|
CourseScheduleStudentPayment courseScheduleStudentPayment = new CourseScheduleStudentPayment();
|
|
|
BigDecimal actualPrice = coursePrices.get(i);
|
|
@@ -3084,7 +3083,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
courseBalance = courseBalance.subtract(actualPrice);
|
|
|
}else {
|
|
|
//扣除排课资格
|
|
|
- activityUserMapperService.use(activityUserMappers,freeActivityUserMappers,j,a,vipGroup.getId(),courseScheduleStudentPayment);
|
|
|
+ activityUserMapperService.use(activityUserMappers,freeActivityUserMappers,indexDto,vipGroup.getId(),courseScheduleStudentPayment);
|
|
|
}
|
|
|
courseScheduleStudentPayment.setGroupType(GroupType.VIP);
|
|
|
courseScheduleStudentPayment.setMusicGroupId(studentRecoverInfo.getVipGroupId().toString());
|
|
@@ -3913,9 +3912,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
List<ActivityUserMapper> activityUserMappers = activityUserMapperService.getDao().findByStudents(studentIdList,vipGroup.getVipGroupCategoryId(),vipGroup.getSingleClassMinutes());
|
|
|
//获取学员赠送排课资格
|
|
|
List<ActivityUserMapper> freeActivityUserMappers = activityUserMapperService.getDao().findByStudents1(studentIdList,vipGroup.getVipGroupCategoryId(),vipGroup.getSingleClassMinutes());
|
|
|
- int j = 0;
|
|
|
- int a = 0;
|
|
|
-
|
|
|
+ BaseMapDto<Integer, Integer> indexDto = new BaseMapDto<>(0, 0);
|
|
|
//实际支付金额,去除优惠券
|
|
|
BigDecimal divide = ZERO;
|
|
|
BigDecimal firstAmount = ZERO;
|
|
@@ -3940,7 +3937,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
courseBalance = courseBalance.subtract(actualPrice);
|
|
|
}else {
|
|
|
//扣除排课资格
|
|
|
- activityUserMapperService.use(activityUserMappers, freeActivityUserMappers, j, a, vipGroup.getId(),courseScheduleStudentPayment);
|
|
|
+ activityUserMapperService.use(activityUserMappers, freeActivityUserMappers,indexDto, vipGroup.getId(),courseScheduleStudentPayment);
|
|
|
}
|
|
|
courseScheduleStudentPayment.setGroupType(GroupType.VIP);
|
|
|
courseScheduleStudentPayment.setMusicGroupId(vipGroupId.toString());
|