|
@@ -74,11 +74,16 @@ public class SporadicChargeInfoImpl extends BaseServiceImpl<Integer, SporadicCha
|
|
|
Map<Integer, String> yimei = new HashMap();
|
|
|
map.put(userId, userId.toString());
|
|
|
if (studentPaymentOrder.getStatus() == DealStatusEnum.SUCCESS) {
|
|
|
- //活动,增加课程余额
|
|
|
- if (info.getChargeType().getCode() == 6 || info.getChargeType().getCode() == 8) {
|
|
|
+ //福袋活动,增加课程余额
|
|
|
+ if (info.getChargeType().getCode() == 6) {
|
|
|
sysUserCashAccountService.appendCourseBalance(userId, studentPaymentOrder.getActualAmount(), "活动");
|
|
|
}
|
|
|
|
|
|
+ //零星收费账户充值
|
|
|
+ if (info.getChargeType().getCode() == 9) {
|
|
|
+ sysUserCashAccountService.updateBalance(userId, studentPaymentOrder.getActualAmount(),PlatformCashAccountDetailTypeEnum.RECHARGE, "零星收费账户充值");
|
|
|
+ }
|
|
|
+
|
|
|
//插入交易明细
|
|
|
BigDecimal amount = studentPaymentOrder.getActualAmount();
|
|
|
Date nowDate = new Date();
|