修改充值时插入充值记录

This commit is contained in:
wuchunlei
2024-12-30 16:20:36 +08:00
parent 93d1ef580d
commit bf0c13ac0d
7 changed files with 8 additions and 9 deletions

View File

@@ -19,6 +19,6 @@ public interface PayPaymentOrderService extends IService<PayPaymentOrderEntity>
PageUtils queryPage(Map<String, Object> params);
void insertDetail(MyUserEntity user, BookBuyConfigEntity bookBuyConfigEntity, int payXxxOrderId);
void insertDetail(MyUserEntity user, BookBuyConfigEntity bookBuyConfigEntity, String payXxxOrderId);
}

View File

@@ -37,10 +37,10 @@ public class PayPaymentOrderServiceImpl extends ServiceImpl<PayPaymentOrderDao,
}
@Override
public void insertDetail(MyUserEntity user, BookBuyConfigEntity bookBuyConfigEntity,int payXxxOrderId) {
public void insertDetail(MyUserEntity user, BookBuyConfigEntity bookBuyConfigEntity,String payXxxOrderId) {
PayPaymentOrderEntity payPaymentOrderEntity = new PayPaymentOrderEntity();
payPaymentOrderEntity.setUserId(user.getId());
payPaymentOrderEntity.setOrderId(payXxxOrderId+"");
payPaymentOrderEntity.setOrderId(payXxxOrderId);
payPaymentOrderEntity.setRealAmount(new BigDecimal(bookBuyConfigEntity.getRealMoney()));
payPaymentOrderEntity.setRechargeAmount(new BigDecimal(bookBuyConfigEntity.getMoney()));
payPaymentOrderEntity.setRechargeChannel(bookBuyConfigEntity.getQudao());