123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- package com.yijia.coupon.domain;
- import java.math.BigDecimal;
- import java.util.Date;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import com.yijia.common.annotation.Excel;
- import com.yijia.common.core.domain.BaseEntity;
- /**
- * 优惠劵对象 coupon_info
- *
- * @author yijia
- * @date 2021-04-27
- */
- public class CouponInfo extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
- /** $column.columnComment */
- private Integer id;
- /** 优惠劵ID */
- @Excel(name = "优惠劵ID")
- private String couponId;
- /** 优惠劵名称 */
- @Excel(name = "优惠劵名称")
- private String couponName;
- /** 优惠劵类型 1现金劵,2折扣券,3兑换券 */
- @Excel(name = "优惠劵类型 1现金劵,2折扣券,3兑换券")
- private String couponType;
- /** 优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣 */
- @Excel(name = "优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣")
- private String useDiscountType;
- /** 油品名称 */
- @Excel(name = "油品名称")
- private String oilName;
- /** 1 柴油,2 汽油 */
- @Excel(name = "1 柴油,2 汽油")
- private String oilType;
- /** 优惠劵面值,金额 */
- @Excel(name = "优惠劵面值,金额")
- private BigDecimal couponAmt;
- /** 优惠劵数量 */
- @Excel(name = "优惠劵数量")
- private Long couponNum;
- /** 有效时间类型 1固定时间,2领取后x天内有效 */
- @Excel(name = "有效时间类型 1固定时间,2领取后x天内有效")
- private String effectiveTimeType;
- /** 固定时间-有效开始时间 */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "固定时间-有效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
- private Date effectiveTimeStart;
- /** 固定时间-有效结束时间 */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "固定时间-有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
- private Date effectiveTimeEnd;
- /** 有效天数 */
- @Excel(name = "有效天数")
- private Integer effectiveDayNum;
- /** 优惠劵领取数量 */
- @Excel(name = "优惠劵领取数量")
- private Integer couponReceiveNum;
- /** 发放平台,1.微信 2支付宝 */
- @Excel(name = "发放平台,1.微信 2支付宝")
- private String openPlatform;
- /** 发放状态 */
- @Excel(name = "发放状态")
- private String grantStatus;
- /** 有效状态,1未生效 */
- @Excel(name = "有效状态,1未生效")
- private String status;
- public void setId(Integer id)
- {
- this.id = id;
- }
- public Integer getId()
- {
- return id;
- }
- public void setCouponId(String couponId)
- {
- this.couponId = couponId;
- }
- public String getCouponId()
- {
- return couponId;
- }
- public void setCouponName(String couponName)
- {
- this.couponName = couponName;
- }
- public String getCouponName()
- {
- return couponName;
- }
- public void setCouponType(String couponType)
- {
- this.couponType = couponType;
- }
- public String getCouponType()
- {
- return couponType;
- }
- public void setUseDiscountType(String useDiscountType)
- {
- this.useDiscountType = useDiscountType;
- }
- public String getUseDiscountType()
- {
- return useDiscountType;
- }
- public void setOilName(String oilName)
- {
- this.oilName = oilName;
- }
- public String getOilName()
- {
- return oilName;
- }
- public void setOilType(String oilType)
- {
- this.oilType = oilType;
- }
- public String getOilType()
- {
- return oilType;
- }
- public void setCouponAmt(BigDecimal couponAmt)
- {
- this.couponAmt = couponAmt;
- }
- public BigDecimal getCouponAmt()
- {
- return couponAmt;
- }
- public void setCouponNum(Long couponNum)
- {
- this.couponNum = couponNum;
- }
- public Long getCouponNum()
- {
- return couponNum;
- }
- public void setEffectiveTimeType(String effectiveTimeType)
- {
- this.effectiveTimeType = effectiveTimeType;
- }
- public String getEffectiveTimeType()
- {
- return effectiveTimeType;
- }
- public void setEffectiveTimeStart(Date effectiveTimeStart)
- {
- this.effectiveTimeStart = effectiveTimeStart;
- }
- public Date getEffectiveTimeStart()
- {
- return effectiveTimeStart;
- }
- public void setEffectiveTimeEnd(Date effectiveTimeEnd)
- {
- this.effectiveTimeEnd = effectiveTimeEnd;
- }
- public Date getEffectiveTimeEnd()
- {
- return effectiveTimeEnd;
- }
- public void setEffectiveDayNum(Integer effectiveDayNum)
- {
- this.effectiveDayNum = effectiveDayNum;
- }
- public Integer getEffectiveDayNum()
- {
- return effectiveDayNum;
- }
- public void setCouponReceiveNum(Integer couponReceiveNum)
- {
- this.couponReceiveNum = couponReceiveNum;
- }
- public Integer getCouponReceiveNum()
- {
- return couponReceiveNum;
- }
- public void setOpenPlatform(String openPlatform)
- {
- this.openPlatform = openPlatform;
- }
- public String getOpenPlatform()
- {
- return openPlatform;
- }
- public void setGrantStatus(String grantStatus)
- {
- this.grantStatus = grantStatus;
- }
- public String getGrantStatus()
- {
- return grantStatus;
- }
- public void setStatus(String status)
- {
- this.status = status;
- }
- public String getStatus()
- {
- return status;
- }
- @Override
- public String toString() {
- return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("couponId", getCouponId())
- .append("couponName", getCouponName())
- .append("couponType", getCouponType())
- .append("useDiscountType", getUseDiscountType())
- .append("oilName", getOilName())
- .append("oilType", getOilType())
- .append("couponAmt", getCouponAmt())
- .append("couponNum", getCouponNum())
- .append("effectiveTimeType", getEffectiveTimeType())
- .append("effectiveTimeStart", getEffectiveTimeStart())
- .append("effectiveTimeEnd", getEffectiveTimeEnd())
- .append("effectiveDayNum", getEffectiveDayNum())
- .append("couponReceiveNum", getCouponReceiveNum())
- .append("openPlatform", getOpenPlatform())
- .append("grantStatus", getGrantStatus())
- .append("status", getStatus())
- .append("createBy", getCreateBy())
- .append("createTime", getCreateTime())
- .append("updateBy", getUpdateBy())
- .append("updateTime", getUpdateTime())
- .toString();
- }
- }
|