|
|
@@ -37,6 +37,8 @@ public class GiftCardOrderServiceImpl extends ServiceImpl<GiftCardOrderMapper, G
|
|
|
private TWxUserService wxUserService;
|
|
|
@Resource
|
|
|
private ShoppingFundsDetailService shoppingFundsDetailService;
|
|
|
+ // 充值
|
|
|
+ public static final int EXPENSE_TYPE_RECHARGE = 0;
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@@ -131,7 +133,7 @@ public class GiftCardOrderServiceImpl extends ServiceImpl<GiftCardOrderMapper, G
|
|
|
dto.setUserId(wxUser.getId());
|
|
|
dto.setAmount(payAmount);
|
|
|
dto.setOrderNo(result.getOutTradeNo());
|
|
|
- dto.setExpenseType(0); // 充值
|
|
|
+ dto.setExpenseType(EXPENSE_TYPE_RECHARGE);
|
|
|
dto.setBalance(newBalance);
|
|
|
dto.setGiftCardId(cardOrder.getGiftCardId());
|
|
|
shoppingFundsDetailService.addShoppingFundsDetail(dto);
|