CouponVo.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. package com.kmall.api.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import java.util.Date;
  6. /**
  7. * @author Scott
  8. * @email
  9. * @date 2017-08-15 08:03:41
  10. */
  11. public class CouponVo implements Serializable {
  12. private static final long serialVersionUID = 1L;
  13. //主键
  14. private Long id;
  15. //优惠券名称
  16. private String name;
  17. //金额
  18. private BigDecimal type_money;
  19. //发放方式 0:按订单发放 1:按用户发放(通用优惠券,用户点击领取) 2:商品转发送券 3:按商品发放 4:新用户注册 5:线下发放 6评价好评红包(固定或随机红包) 7包邮(不入会员优惠券表)
  20. private Integer send_type;
  21. //最小金额(2、6使用,随机)
  22. private BigDecimal min_amount;
  23. //最大金额2、6使用,随机)
  24. private BigDecimal max_amount;
  25. //发放时间
  26. @JsonFormat(pattern = "yyyy.MM.dd")
  27. private Date send_start_date;
  28. //发放时间
  29. @JsonFormat(pattern = "yyyy.MM.dd")
  30. private Date send_end_date;
  31. //使用开始时间
  32. @JsonFormat(pattern = "yyyy.MM.dd")
  33. private Date use_start_date;
  34. //使用结束时间
  35. @JsonFormat(pattern = "yyyy.MM.dd")
  36. private Date use_end_date;
  37. //最小商品金额
  38. private BigDecimal min_goods_amount;
  39. //活动大图
  40. private String pic_url;
  41. //优惠券说明
  42. private String coupon_txt;
  43. //优惠券会员Id
  44. private String user_id;
  45. //优惠券编码
  46. private String coupon_number;
  47. //可用 1:可用 0:不可用
  48. private Integer enabled = 0;
  49. //转发次数
  50. private Integer min_transmit_num;
  51. //有效天数
  52. // private Integer invalid_days;
  53. // 冗余显示信息
  54. private String msg; // 显示信息
  55. private Integer type = 0; // 是否凑单 0否 1是
  56. private BigDecimal money; // 优惠金额
  57. private BigDecimal difDec; // 与结算价格差异
  58. private String isAll;//是否适用与全场
  59. private String couponUrl;
  60. public String getCouponUrl() {
  61. return couponUrl;
  62. }
  63. public void setCouponUrl(String couponUrl) {
  64. this.couponUrl = couponUrl;
  65. }
  66. public String getIsAll() {
  67. return isAll;
  68. }
  69. public void setIsAll(String isAll) {
  70. this.isAll = isAll;
  71. }
  72. public Long getId() {
  73. return id;
  74. }
  75. public void setId(Long id) {
  76. this.id = id;
  77. }
  78. public String getName() {
  79. return name;
  80. }
  81. public void setName(String name) {
  82. this.name = name;
  83. }
  84. public BigDecimal getType_money() {
  85. return type_money;
  86. }
  87. public void setType_money(BigDecimal type_money) {
  88. this.type_money = type_money;
  89. }
  90. public Integer getSend_type() {
  91. return send_type;
  92. }
  93. public void setSend_type(Integer send_type) {
  94. this.send_type = send_type;
  95. }
  96. public BigDecimal getMin_amount() {
  97. return min_amount;
  98. }
  99. public void setMin_amount(BigDecimal min_amount) {
  100. this.min_amount = min_amount;
  101. }
  102. public BigDecimal getMax_amount() {
  103. return max_amount;
  104. }
  105. public void setMax_amount(BigDecimal max_amount) {
  106. this.max_amount = max_amount;
  107. }
  108. public Date getSend_start_date() {
  109. return send_start_date;
  110. }
  111. public void setSend_start_date(Date send_start_date) {
  112. this.send_start_date = send_start_date;
  113. }
  114. public Date getSend_end_date() {
  115. return send_end_date;
  116. }
  117. public void setSend_end_date(Date send_end_date) {
  118. this.send_end_date = send_end_date;
  119. }
  120. public Date getUse_start_date() {
  121. return use_start_date;
  122. }
  123. public void setUse_start_date(Date use_start_date) {
  124. this.use_start_date = use_start_date;
  125. }
  126. public Date getUse_end_date() {
  127. return use_end_date;
  128. }
  129. public void setUse_end_date(Date use_end_date) {
  130. this.use_end_date = use_end_date;
  131. }
  132. public BigDecimal getMin_goods_amount() {
  133. return min_goods_amount;
  134. }
  135. public void setMin_goods_amount(BigDecimal min_goods_amount) {
  136. this.min_goods_amount = min_goods_amount;
  137. }
  138. public String getCoupon_txt() {
  139. return coupon_txt;
  140. }
  141. public void setCoupon_txt(String coupon_txt) {
  142. this.coupon_txt = coupon_txt;
  143. }
  144. public String getUser_id() {
  145. return user_id;
  146. }
  147. public void setUser_id(String user_id) {
  148. this.user_id = user_id;
  149. }
  150. public String getCoupon_number() {
  151. return coupon_number;
  152. }
  153. public void setCoupon_number(String coupon_number) {
  154. this.coupon_number = coupon_number;
  155. }
  156. public Integer getEnabled() {
  157. return enabled;
  158. }
  159. public void setEnabled(Integer enabled) {
  160. this.enabled = enabled;
  161. }
  162. public Integer getMin_transmit_num() {
  163. return min_transmit_num;
  164. }
  165. public void setMin_transmit_num(Integer min_transmit_num) {
  166. this.min_transmit_num = min_transmit_num;
  167. }
  168. public String getPic_url() {
  169. return pic_url;
  170. }
  171. public void setPic_url(String pic_url) {
  172. this.pic_url = pic_url;
  173. }
  174. public String getMsg() {
  175. return msg;
  176. }
  177. public void setMsg(String msg) {
  178. this.msg = msg;
  179. }
  180. public Integer getType() {
  181. return type;
  182. }
  183. public void setType(Integer type) {
  184. this.type = type;
  185. }
  186. public BigDecimal getMoney() {
  187. return money;
  188. }
  189. public void setMoney(BigDecimal money) {
  190. this.money = money;
  191. }
  192. public BigDecimal getDifDec() {
  193. return difDec;
  194. }
  195. public void setDifDec(BigDecimal difDec) {
  196. this.difDec = difDec;
  197. }
  198. }