UserCouponVo.java 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. import java.util.List;
  7. /**
  8. * @author Scott
  9. * @email
  10. * @date 2017-08-15 08:03:41
  11. */
  12. public class UserCouponVo implements Serializable {
  13. private static final long serialVersionUID = 1L;
  14. //主键
  15. private Long id;
  16. //优惠券Id
  17. private Long storeTopicId;
  18. //优惠券名称
  19. private String couponName;
  20. //优惠券数量
  21. private String couponNumber;
  22. //会员Id
  23. private Long userId;
  24. //使用时间
  25. private Date usedTime;
  26. //领取时间
  27. @JsonFormat(pattern = "yyyy.MM.dd")
  28. private Date addTime;
  29. //订单Id
  30. private Long orderId;
  31. //来源key
  32. private String sourceKey;
  33. //分享人
  34. private Long referrer;
  35. //是否需要显示 0:未显示 1:已显示
  36. private Integer showState = 0;
  37. //发放方式 0:按订单发放 1:按用户发放(通用优惠券,用户点击领取) 2:商品转发送券 3:按商品发放 4:新用户注册 5:线下发放 6评价好评红包(固定或随机红包) 7包邮(不入会员优惠券表)
  38. private Integer sendType;
  39. //最小商品金额
  40. // private BigDecimal min_goods_amount;
  41. //过期时间
  42. @JsonFormat(pattern = "yyyy.MM.dd")
  43. private Date endTime;
  44. //金额
  45. private BigDecimal typeMoney;
  46. //可用 1:可用 0:不可用
  47. private String enabled = "1";
  48. private String isAll;
  49. private String couponUrl;
  50. private String isUsed;
  51. private String merchSn;
  52. private String advImgUrl;
  53. private String dicountName;
  54. private Date createTime;
  55. private Date modTime;
  56. private Boolean selectTicket;
  57. private String applyType;
  58. /**
  59. * 优惠类型,【tick_disc_type,00:代金券,01:折扣券,02:兑换券】
  60. */
  61. private String tickDiscType;
  62. private String goodsBizType;
  63. //生效时间
  64. @JsonFormat(pattern = "yyyy.MM.dd")
  65. private Date validTime;
  66. private List<Integer> goodsList;
  67. public List<Integer> getGoodsList() {
  68. return goodsList;
  69. }
  70. public void setGoodsList(List<Integer> goodsList) {
  71. this.goodsList = goodsList;
  72. }
  73. public Date getValidTime() {
  74. return validTime;
  75. }
  76. public void setValidTime(Date validTime) {
  77. this.validTime = validTime;
  78. }
  79. public String getGoodsBizType() {
  80. return goodsBizType;
  81. }
  82. public void setGoodsBizType(String goodsBizType) {
  83. this.goodsBizType = goodsBizType;
  84. }
  85. public String getTickDiscType() {
  86. return tickDiscType;
  87. }
  88. public void setTickDiscType(String tickDiscType) {
  89. this.tickDiscType = tickDiscType;
  90. }
  91. public String getApplyType() {
  92. return applyType;
  93. }
  94. public void setApplyType(String applyType) {
  95. this.applyType = applyType;
  96. }
  97. public Boolean getSelectTicket() {
  98. return selectTicket;
  99. }
  100. public void setSelectTicket(Boolean selectTicket) {
  101. this.selectTicket = selectTicket;
  102. }
  103. public Date getCreateTime() {
  104. return createTime;
  105. }
  106. public void setCreateTime(Date createTime) {
  107. this.createTime = createTime;
  108. }
  109. public Date getModTime() {
  110. return modTime;
  111. }
  112. public void setModTime(Date modTime) {
  113. this.modTime = modTime;
  114. }
  115. public String getAdvImgUrl() {
  116. return advImgUrl;
  117. }
  118. public void setAdvImgUrl(String advImgUrl) {
  119. this.advImgUrl = advImgUrl;
  120. }
  121. public String getDicountName() {
  122. return dicountName;
  123. }
  124. public void setDicountName(String dicountName) {
  125. this.dicountName = dicountName;
  126. }
  127. public String getMerchSn() {
  128. return merchSn;
  129. }
  130. public void setMerchSn(String merchSn) {
  131. this.merchSn = merchSn;
  132. }
  133. public String getIsUsed() {
  134. return isUsed;
  135. }
  136. public void setIsUsed(String isUsed) {
  137. this.isUsed = isUsed;
  138. }
  139. public String getCouponUrl() {
  140. return couponUrl;
  141. }
  142. public void setCouponUrl(String couponUrl) {
  143. this.couponUrl = couponUrl;
  144. }
  145. public String getIsAll() {
  146. return isAll;
  147. }
  148. public void setIsAll(String isAll) {
  149. this.isAll = isAll;
  150. }
  151. public Long getId() {
  152. return id;
  153. }
  154. public void setId(Long id) {
  155. this.id = id;
  156. }
  157. public Long getStoreTopicId() {
  158. return storeTopicId;
  159. }
  160. public void setStoreTopicId(Long storeTopicId) {
  161. this.storeTopicId = storeTopicId;
  162. }
  163. public String getCouponName() {
  164. return couponName;
  165. }
  166. public void setCouponName(String couponName) {
  167. this.couponName = couponName;
  168. }
  169. public String getCouponNumber() {
  170. return couponNumber;
  171. }
  172. public void setCouponNumber(String couponNumber) {
  173. this.couponNumber = couponNumber;
  174. }
  175. public Long getUserId() {
  176. return userId;
  177. }
  178. public void setUserId(Long userId) {
  179. this.userId = userId;
  180. }
  181. public Date getUsedTime() {
  182. return usedTime;
  183. }
  184. public void setUsedTime(Date usedTime) {
  185. this.usedTime = usedTime;
  186. }
  187. public Date getAddTime() {
  188. return addTime;
  189. }
  190. public void setAddTime(Date addTime) {
  191. this.addTime = addTime;
  192. }
  193. public Long getOrderId() {
  194. return orderId;
  195. }
  196. public void setOrderId(Long orderId) {
  197. this.orderId = orderId;
  198. }
  199. public String getSourceKey() {
  200. return sourceKey;
  201. }
  202. public void setSourceKey(String sourceKey) {
  203. this.sourceKey = sourceKey;
  204. }
  205. public Long getReferrer() {
  206. return referrer;
  207. }
  208. public void setReferrer(Long referrer) {
  209. this.referrer = referrer;
  210. }
  211. public Integer getShowState() {
  212. return showState;
  213. }
  214. public void setShowState(Integer showState) {
  215. this.showState = showState;
  216. }
  217. public Integer getSendType() {
  218. return sendType;
  219. }
  220. public void setSendType(Integer sendType) {
  221. this.sendType = sendType;
  222. }
  223. public Date getEndTime() {
  224. return endTime;
  225. }
  226. public void setEndTime(Date endTime) {
  227. this.endTime = endTime;
  228. }
  229. public BigDecimal getTypeMoney() {
  230. return typeMoney;
  231. }
  232. public void setTypeMoney(BigDecimal typeMoney) {
  233. this.typeMoney = typeMoney;
  234. }
  235. public String getEnabled() {
  236. return enabled;
  237. }
  238. public void setEnabled(String enabled) {
  239. this.enabled = enabled;
  240. }
  241. }