会员支付
This commit is contained in:
parent
3329093c88
commit
caaca7b318
@ -13,6 +13,7 @@ public interface PaidMemberOrderConvert {
|
||||
PaidMemberOrderConvert INSTANCE = Mappers.getMapper(PaidMemberOrderConvert.class);
|
||||
|
||||
PaidMemberOrderDO convert(Long uid, String cardName, Integer type,
|
||||
String payChannel, BigDecimal price, LocalDateTime payTime,String deadlineDay,LocalDateTime cardExpirationTime);
|
||||
String payChannel, BigDecimal price, LocalDateTime payTime,
|
||||
String deadlineDay,LocalDateTime cardExpirationTime,BigDecimal originalPrice);
|
||||
|
||||
}
|
||||
|
@ -102,10 +102,11 @@ public class AppPaidMembeOrderController {
|
||||
getLoginUserType(),getClientIP(),reqVO.getPrice(),reqVO.getType());
|
||||
BigDecimal p = payPrice.multiply(new BigDecimal("100"));
|
||||
Integer payPriceInt = p.intValue();
|
||||
BigDecimal originalPrice = cardService.selectByName(reqVO.getCardName()).getOriginalPrice();
|
||||
// PayWalletDO walletDO = memberWalletService.getOrCreateWallet(getLoginUserId(),getLoginUserType());
|
||||
//订单对象赋值
|
||||
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,originalPrice);
|
||||
paidMemberOrderService1.createOrder(paidMemberOrderDO);
|
||||
Long payOrderId = payOrderService01.createOrder(new PayOrderCreateReqDTO()
|
||||
.setAppId(1L).setUserIp(getClientIP())
|
||||
|
Loading…
Reference in New Issue
Block a user