|
@@ -91,7 +91,10 @@ public class SporadicChargeInfoImpl extends BaseServiceImpl<Integer, SporadicCha
|
|
|
throw new BizException("给用户增加抽奖次数失败");
|
|
|
}
|
|
|
}
|
|
|
- sysUserCashAccountService.appendCourseBalance(userId, studentPaymentOrder.getActualAmount(), PlatformCashAccountDetailTypeEnum.SPORADIC, "双11活动");
|
|
|
+ boolean appendCourseBalance = sysUserCashAccountService.appendCourseBalance(userId, studentPaymentOrder.getActualAmount(), PlatformCashAccountDetailTypeEnum.SPORADIC, "双11活动");
|
|
|
+ if (!appendCourseBalance) {
|
|
|
+ throw new BizException("增加用户课程余额失败");
|
|
|
+ }
|
|
|
} else if (info.getChargeType().getCode() == 9) { //零星收费账户充值
|
|
|
sysUserCashAccountService.updateBalance(userId, studentPaymentOrder.getActualAmount(), PlatformCashAccountDetailTypeEnum.RECHARGE, "零星收费账户充值", studentPaymentOrder.getTransNo());
|
|
|
} else if (info.getOrganId().equals(42) && info.getChargeType().equals(SporadicChargeTypeEnum.LEVEL)) {
|