CouponInfo.java 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. package com.yijia.coupon.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import com.yijia.common.annotation.Excel;
  8. import com.yijia.common.core.domain.BaseEntity;
  9. /**
  10. * 优惠劵对象 coupon_info
  11. *
  12. * @author yijia
  13. * @date 2021-04-27
  14. */
  15. public class CouponInfo extends BaseEntity
  16. {
  17. private static final long serialVersionUID = 1L;
  18. /** $column.columnComment */
  19. private Integer id;
  20. /** 优惠劵ID */
  21. @Excel(name = "优惠劵ID")
  22. private String couponId;
  23. /** 优惠劵名称 */
  24. @Excel(name = "优惠劵名称")
  25. private String couponName;
  26. /** 优惠劵类型 1现金劵,2折扣券,3兑换券 */
  27. @Excel(name = "优惠劵类型 1现金劵,2折扣券,3兑换券")
  28. private String couponType;
  29. /** 优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣 */
  30. @Excel(name = "优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣")
  31. private String useDiscountType;
  32. /** 油品名称 */
  33. @Excel(name = "油品名称")
  34. private String oilName;
  35. /** 1 柴油,2 汽油 */
  36. @Excel(name = "1 柴油,2 汽油")
  37. private String oilType;
  38. /** 优惠劵面值,金额 */
  39. @Excel(name = "优惠劵面值,金额")
  40. private BigDecimal couponAmt;
  41. /** 优惠劵数量 */
  42. @Excel(name = "优惠劵数量")
  43. private Long couponNum;
  44. /** 有效时间类型 1固定时间,2领取后x天内有效 */
  45. @Excel(name = "有效时间类型 1固定时间,2领取后x天内有效")
  46. private String effectiveTimeType;
  47. /** 固定时间-有效开始时间 */
  48. @JsonFormat(pattern = "yyyy-MM-dd")
  49. @Excel(name = "固定时间-有效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
  50. private Date effectiveTimeStart;
  51. /** 固定时间-有效结束时间 */
  52. @JsonFormat(pattern = "yyyy-MM-dd")
  53. @Excel(name = "固定时间-有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
  54. private Date effectiveTimeEnd;
  55. /** 有效天数 */
  56. @Excel(name = "有效天数")
  57. private Integer effectiveDayNum;
  58. /** 优惠劵领取数量 */
  59. @Excel(name = "优惠劵领取数量")
  60. private Integer couponReceiveNum;
  61. /** 发放平台,1.微信 2支付宝 */
  62. @Excel(name = "发放平台,1.微信 2支付宝")
  63. private String openPlatform;
  64. /** 发放状态 */
  65. @Excel(name = "发放状态")
  66. private String grantStatus;
  67. /** 有效状态,1未生效 */
  68. @Excel(name = "有效状态,1未生效")
  69. private String status;
  70. public void setId(Integer id)
  71. {
  72. this.id = id;
  73. }
  74. public Integer getId()
  75. {
  76. return id;
  77. }
  78. public void setCouponId(String couponId)
  79. {
  80. this.couponId = couponId;
  81. }
  82. public String getCouponId()
  83. {
  84. return couponId;
  85. }
  86. public void setCouponName(String couponName)
  87. {
  88. this.couponName = couponName;
  89. }
  90. public String getCouponName()
  91. {
  92. return couponName;
  93. }
  94. public void setCouponType(String couponType)
  95. {
  96. this.couponType = couponType;
  97. }
  98. public String getCouponType()
  99. {
  100. return couponType;
  101. }
  102. public void setUseDiscountType(String useDiscountType)
  103. {
  104. this.useDiscountType = useDiscountType;
  105. }
  106. public String getUseDiscountType()
  107. {
  108. return useDiscountType;
  109. }
  110. public void setOilName(String oilName)
  111. {
  112. this.oilName = oilName;
  113. }
  114. public String getOilName()
  115. {
  116. return oilName;
  117. }
  118. public void setOilType(String oilType)
  119. {
  120. this.oilType = oilType;
  121. }
  122. public String getOilType()
  123. {
  124. return oilType;
  125. }
  126. public void setCouponAmt(BigDecimal couponAmt)
  127. {
  128. this.couponAmt = couponAmt;
  129. }
  130. public BigDecimal getCouponAmt()
  131. {
  132. return couponAmt;
  133. }
  134. public void setCouponNum(Long couponNum)
  135. {
  136. this.couponNum = couponNum;
  137. }
  138. public Long getCouponNum()
  139. {
  140. return couponNum;
  141. }
  142. public void setEffectiveTimeType(String effectiveTimeType)
  143. {
  144. this.effectiveTimeType = effectiveTimeType;
  145. }
  146. public String getEffectiveTimeType()
  147. {
  148. return effectiveTimeType;
  149. }
  150. public void setEffectiveTimeStart(Date effectiveTimeStart)
  151. {
  152. this.effectiveTimeStart = effectiveTimeStart;
  153. }
  154. public Date getEffectiveTimeStart()
  155. {
  156. return effectiveTimeStart;
  157. }
  158. public void setEffectiveTimeEnd(Date effectiveTimeEnd)
  159. {
  160. this.effectiveTimeEnd = effectiveTimeEnd;
  161. }
  162. public Date getEffectiveTimeEnd()
  163. {
  164. return effectiveTimeEnd;
  165. }
  166. public void setEffectiveDayNum(Integer effectiveDayNum)
  167. {
  168. this.effectiveDayNum = effectiveDayNum;
  169. }
  170. public Integer getEffectiveDayNum()
  171. {
  172. return effectiveDayNum;
  173. }
  174. public void setCouponReceiveNum(Integer couponReceiveNum)
  175. {
  176. this.couponReceiveNum = couponReceiveNum;
  177. }
  178. public Integer getCouponReceiveNum()
  179. {
  180. return couponReceiveNum;
  181. }
  182. public void setOpenPlatform(String openPlatform)
  183. {
  184. this.openPlatform = openPlatform;
  185. }
  186. public String getOpenPlatform()
  187. {
  188. return openPlatform;
  189. }
  190. public void setGrantStatus(String grantStatus)
  191. {
  192. this.grantStatus = grantStatus;
  193. }
  194. public String getGrantStatus()
  195. {
  196. return grantStatus;
  197. }
  198. public void setStatus(String status)
  199. {
  200. this.status = status;
  201. }
  202. public String getStatus()
  203. {
  204. return status;
  205. }
  206. @Override
  207. public String toString() {
  208. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  209. .append("id", getId())
  210. .append("couponId", getCouponId())
  211. .append("couponName", getCouponName())
  212. .append("couponType", getCouponType())
  213. .append("useDiscountType", getUseDiscountType())
  214. .append("oilName", getOilName())
  215. .append("oilType", getOilType())
  216. .append("couponAmt", getCouponAmt())
  217. .append("couponNum", getCouponNum())
  218. .append("effectiveTimeType", getEffectiveTimeType())
  219. .append("effectiveTimeStart", getEffectiveTimeStart())
  220. .append("effectiveTimeEnd", getEffectiveTimeEnd())
  221. .append("effectiveDayNum", getEffectiveDayNum())
  222. .append("couponReceiveNum", getCouponReceiveNum())
  223. .append("openPlatform", getOpenPlatform())
  224. .append("grantStatus", getGrantStatus())
  225. .append("status", getStatus())
  226. .append("createBy", getCreateBy())
  227. .append("createTime", getCreateTime())
  228. .append("updateBy", getUpdateBy())
  229. .append("updateTime", getUpdateTime())
  230. .toString();
  231. }
  232. }