| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- package com.ruoyi.system.domain;
- import java.math.BigDecimal;
- import java.util.Date;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableId;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import javax.persistence.GeneratedValue;
- /**
- * PromotionCouponRule对象 promotion_coupon_rule
- *
- * @author ruoyi
- * @date 2024-05-30
- */
- @Data
- @TableName(value = "promotion_coupon_rule")
- @EqualsAndHashCode(callSuper = false)
- public class PromotionCouponRule
- {
- private static final long serialVersionUID = 1L;
- @TableId(type = IdType.AUTO)
- @GeneratedValue
- /** id */
- private Long id;
- /** 批次ID */
- private Long batchId;
- /** 商品ID */
- private Long productId;
- /** 0=同享 1=互斥 */
- private Integer isMutex;
- /** 门槛金额 */
- private BigDecimal threshold;
- /** 券面额 */
- private BigDecimal amount;
- /** 折扣率 */
- private BigDecimal discountRate;
- /** 商品名称 */
- @TableField(exist = false)
- private String productName;
- /** 商品图片 */
- @TableField(exist = false)
- private String productImage;
- /** 商品价格 */
- @TableField(exist = false)
- private BigDecimal productPrice;
- public void setId(Long id)
- {
- this.id = id;
- }
- public Long getId()
- {
- return id;
- }
- public void setBatchId(Long batchId)
- {
- this.batchId = batchId;
- }
- public Long getBatchId()
- {
- return batchId;
- }
- public void setProductId(Long productId)
- {
- this.productId = productId;
- }
- public Long getProductId()
- {
- return productId;
- }
- public void setIsMutex(Integer isMutex)
- {
- this.isMutex = isMutex;
- }
- public Integer getIsMutex()
- {
- return isMutex;
- }
- public void setThreshold(BigDecimal threshold)
- {
- this.threshold = threshold;
- }
- public BigDecimal getThreshold()
- {
- return threshold;
- }
- public void setAmount(BigDecimal amount)
- {
- this.amount = amount;
- }
- public BigDecimal getAmount()
- {
- return amount;
- }
- public void setDiscountRate(BigDecimal discountRate)
- {
- this.discountRate = discountRate;
- }
- public BigDecimal getDiscountRate()
- {
- return discountRate;
- }
- @Override
- public String toString() {
- return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("batchId", getBatchId())
- .append("productId", getProductId())
- .append("isMutex", getIsMutex())
- .append("threshold", getThreshold())
- .append("amount", getAmount())
- .append("discountRate", getDiscountRate())
- .toString();
- }
- }
|