优惠券查询DTO

This commit is contained in:
2025-04-14 13:37:01 +08:00
parent 909978467c
commit 1ce6c74f2c
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.ai.da.mapper.primary;
import com.ai.da.common.config.mybatis.plus.CommonMapper;
import com.ai.da.mapper.primary.entity.ProductCoupons;
public interface ProductCouponsMapper extends CommonMapper<ProductCoupons> {
}

View File

@@ -0,0 +1,49 @@
package com.ai.da.mapper.primary.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_product_coupons")
public class ProductCoupons extends BaseEntity{
// 优惠券id
private String couponId;
// 优惠券有效期的截止日期
private Long redeemBy;
// 绑定的推广码id
private String promotionCodeId;
// 对应的推广码
private String promotionCode;
// 最大兑换次数
private Integer maxRedemptions;
// 优惠券的折扣
private float percentOff;
// 佣金比例
private float commissionRate;
// 合作者
private String cooperator;
// 使用了该优惠券支付的总金额
private float totalEarnings;
// 佣金
private float commission;
// 已付佣金
private float paidCommission;
// 未付佣金
private float unpaidCommission;
// 备注
private String remark;
public ProductCoupons() {
}
public ProductCoupons(String couponId, Long redeemBy, String promotionCodeId, String promotionCode, float percentOff, float commissionRate) {
this.couponId = couponId;
this.redeemBy = redeemBy;
this.promotionCodeId = promotionCodeId;
this.promotionCode = promotionCode;
this.percentOff = percentOff;
this.commissionRate = commissionRate;
}
}