会员支付
This commit is contained in:
parent
5cb71e0889
commit
3329093c88
@ -102,7 +102,7 @@ public class AppPaidMembeOrderController {
|
||||
getLoginUserType(),getClientIP(),reqVO.getPrice(),reqVO.getType());
|
||||
BigDecimal p = payPrice.multiply(new BigDecimal("100"));
|
||||
Integer payPriceInt = p.intValue();
|
||||
// PayWalletDO walletDO = memberWalletService.getWalletByUserIdAndType(getLoginUserId(),getLoginUserType());
|
||||
// PayWalletDO walletDO = memberWalletService.getOrCreateWallet(getLoginUserId(),getLoginUserType());
|
||||
//订单对象赋值
|
||||
PaidMemberOrderDO paidMemberOrderDO = PaidMemberOrderConvert.INSTANCE.convert(getLoginUserId(),
|
||||
reqVO.getCardName(),reqVO.getType(),reqVO.getPayChannel(),reqVO.getPrice(),payTime,deadlineDay,cardExpirationTime);
|
||||
|
@ -98,15 +98,6 @@ public interface PayWalletService {
|
||||
*/
|
||||
void unfreezePrice(Long id, Integer price);
|
||||
|
||||
/**
|
||||
* 获取钱包信息
|
||||
* <p>
|
||||
* 如果不存在,则创建钱包。由于用户注册时候不会创建钱包
|
||||
*
|
||||
* @param userId 用户编号
|
||||
* @param userType 用户类型
|
||||
*/
|
||||
PayWalletDO getWalletByUserIdAndType(Long userId, Integer userType);
|
||||
|
||||
// /**
|
||||
// * 修改钱包余额(后台操作)
|
||||
|
@ -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
|
||||
// public void updateWallet(PayWalletUserBalanceVo reqVo) {
|
||||
|
Loading…
Reference in New Issue
Block a user