|
@@ -4190,6 +4190,13 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
}
|
|
}
|
|
activityUserMappers.add(activityUserMapper);
|
|
activityUserMappers.add(activityUserMapper);
|
|
times = times + activity.getGivePrizeNum();
|
|
times = times + activity.getGivePrizeNum();
|
|
|
|
+ //是否进入课程余额
|
|
|
|
+ if(activity.isPayToBalance()){
|
|
|
|
+ boolean appendCourseBalance = sysUserCashAccountService.appendCourseBalance(userId, activity.getMarketPrice(), PlatformCashAccountDetailTypeEnum.PAY_FEE, "2021双11活动");
|
|
|
|
+ if (!appendCourseBalance) {
|
|
|
|
+ throw new BizException("增加用户课程余额失败");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//赠送抽奖机会
|
|
//赠送抽奖机会
|
|
if(times > 0){
|
|
if(times > 0){
|
|
@@ -5680,7 +5687,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
|
|
|
//判断用户是否已存在订单
|
|
//判断用户是否已存在订单
|
|
// 判断是否存在支付中的记录
|
|
// 判断是否存在支付中的记录
|
|
- List<StudentPaymentOrder> list = studentPaymentOrderService.queryByCondition(GroupType.VIP,null,student.getUserId(),DealStatusEnum.ING,OrderTypeEnum.DOUBLE_ELEVEN2021);
|
|
|
|
|
|
+ List<StudentPaymentOrder> list = studentPaymentOrderService.queryByCondition(GroupType.ACTIVITY,null,student.getUserId(),DealStatusEnum.ING,OrderTypeEnum.DOUBLE_ELEVEN2021);
|
|
if (list.size() > 0) {
|
|
if (list.size() > 0) {
|
|
StudentPaymentOrder order = list.get(0);
|
|
StudentPaymentOrder order = list.get(0);
|
|
// 查询订单状态
|
|
// 查询订单状态
|
|
@@ -5730,7 +5737,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
|
|
|
studentPaymentOrder.setPaymentChannel("BALANCE");
|
|
studentPaymentOrder.setPaymentChannel("BALANCE");
|
|
studentPaymentOrder.setUserId(student.getUserId());
|
|
studentPaymentOrder.setUserId(student.getUserId());
|
|
- studentPaymentOrder.setGroupType(GroupType.VIP);
|
|
|
|
|
|
+ studentPaymentOrder.setGroupType(GroupType.ACTIVITY);
|
|
studentPaymentOrder.setOrderNo(orderNo);
|
|
studentPaymentOrder.setOrderNo(orderNo);
|
|
studentPaymentOrder.setType(OrderTypeEnum.DOUBLE_ELEVEN2021);
|
|
studentPaymentOrder.setType(OrderTypeEnum.DOUBLE_ELEVEN2021);
|
|
studentPaymentOrder.setStatus(DealStatusEnum.ING);
|
|
studentPaymentOrder.setStatus(DealStatusEnum.ING);
|