会员充值问题

霸王餐问题
This commit is contained in:
2025-03-12 15:32:37 +08:00
parent 6c4da6d5a9
commit 6122c8872e
3 changed files with 30 additions and 32 deletions

View File

@@ -41,6 +41,10 @@ public class OrderPayment implements Serializable {
* 来源Id 订单Id或充值id
*/
private Long sourceId;
/**
* 霸王餐充值为 订单id 会员充值为 活动id
*/
private Long relatedId;
/**
* 支付方式order,refund, memberIn,memberRefund, free
@@ -93,4 +97,15 @@ public class OrderPayment implements Serializable {
this.authCode = authCode;
this.amount = amount;
}
public OrderPayment(@NonNull Long shopId,@NonNull Long sourceId, @NotBlank String payType, @NotBlank String orderNo,
String authCode, @NonNull BigDecimal amount, Long relatedId) {
this.shopId = shopId;
this.sourceId = sourceId;
this.payType = payType;
this.orderNo = orderNo;
this.authCode = authCode;
this.amount = amount;
this.relatedId = relatedId;
}
}