Stripe推广码 部分功能完善

This commit is contained in:
2025-04-15 15:58:22 +08:00
parent 0ba28588da
commit 218d828e0d
6 changed files with 48 additions and 5 deletions

View File

@@ -3,10 +3,12 @@ package com.ai.da.mapper.primary.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_product_coupons")
@NoArgsConstructor
public class ProductCoupons extends BaseEntity{
// 优惠券id
private String couponId;
@@ -35,16 +37,15 @@ public class ProductCoupons extends BaseEntity{
// 备注
private String remark;
public ProductCoupons() {
}
public ProductCoupons(String couponId, Long redeemBy, String promotionCodeId, String promotionCode, Long maxRedemptions, float percentOff, float commissionRate) {
public ProductCoupons(String couponId, Long redeemBy, String promotionCodeId, String promotionCode, Long maxRedemptions, float percentOff, float commissionRate, String cooperator, String remark) {
this.couponId = couponId;
this.redeemBy = redeemBy;
this.promotionCodeId = promotionCodeId;
this.promotionCode = promotionCode;
this.maxRedemptions = maxRedemptions;
this.percentOff = percentOff;
this.cooperator = cooperator;
this.remark = remark;
this.commissionRate = commissionRate;
}
}