会员支付

This commit is contained in:
khy 2024-10-21 11:18:46 +08:00
parent 5cb71e0889
commit 3329093c88
3 changed files with 1 additions and 18 deletions

View File

@ -102,7 +102,7 @@ public class AppPaidMembeOrderController {
getLoginUserType(),getClientIP(),reqVO.getPrice(),reqVO.getType()); getLoginUserType(),getClientIP(),reqVO.getPrice(),reqVO.getType());
BigDecimal p = payPrice.multiply(new BigDecimal("100")); BigDecimal p = payPrice.multiply(new BigDecimal("100"));
Integer payPriceInt = p.intValue(); Integer payPriceInt = p.intValue();
// PayWalletDO walletDO = memberWalletService.getWalletByUserIdAndType(getLoginUserId(),getLoginUserType()); // PayWalletDO walletDO = memberWalletService.getOrCreateWallet(getLoginUserId(),getLoginUserType());
//订单对象赋值 //订单对象赋值
PaidMemberOrderDO paidMemberOrderDO = PaidMemberOrderConvert.INSTANCE.convert(getLoginUserId(), PaidMemberOrderDO paidMemberOrderDO = PaidMemberOrderConvert.INSTANCE.convert(getLoginUserId(),
reqVO.getCardName(),reqVO.getType(),reqVO.getPayChannel(),reqVO.getPrice(),payTime,deadlineDay,cardExpirationTime); reqVO.getCardName(),reqVO.getType(),reqVO.getPayChannel(),reqVO.getPrice(),payTime,deadlineDay,cardExpirationTime);

View File

@ -98,15 +98,6 @@ public interface PayWalletService {
*/ */
void unfreezePrice(Long id, Integer price); void unfreezePrice(Long id, Integer price);
/**
* 获取钱包信息
* <p>
* 如果不存在则创建钱包由于用户注册时候不会创建钱包
*
* @param userId 用户编号
* @param userType 用户类型
*/
PayWalletDO getWalletByUserIdAndType(Long userId, Integer userType);
// /** // /**
// * 修改钱包余额后台操作 // * 修改钱包余额后台操作

View File

@ -226,14 +226,6 @@ public class PayWalletServiceImpl implements PayWalletService {
} }
} }
@Override
public PayWalletDO getWalletByUserIdAndType(Long userId, Integer userType) {
PayWalletDO wallet = walletMapper.selectByUserIdAndType(userId, userType);
if (wallet == null) {
throw exception(WALLET_NOT_FOUND);
}
return wallet;
}
// @Override // @Override
// public void updateWallet(PayWalletUserBalanceVo reqVo) { // public void updateWallet(PayWalletUserBalanceVo reqVo) {