GoodsGroupOpenDetailVo.java 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. package com.kmall.api.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.kmall.common.utils.DateUtils;
  4. import com.kmall.common.utils.StringUtils;
  5. import java.io.Serializable;
  6. import java.math.BigDecimal;
  7. import java.util.Date;
  8. /**
  9. * 实体
  10. * 表名 mall_group_open_detail
  11. *
  12. * @author Scott
  13. * @email
  14. * @date 2017-10-18 16:00:50
  15. */
  16. public class GoodsGroupOpenDetailVo implements Serializable {
  17. private static final long serialVersionUID = 1L;
  18. //
  19. private Long id;
  20. //开团Id
  21. private Long open_id;
  22. //参团人
  23. private Long user_id;
  24. //参团时间
  25. private Date attend_time;
  26. //参团状态 0待付款 1拼团中 2拼团成功 3拼团失败
  27. private Integer attend_status;
  28. // 1团长 0否
  29. private Integer group_head = 0;
  30. // 冗余字段
  31. // 会员
  32. private String nickname;
  33. private String avatar;
  34. //团购主题
  35. private String title;
  36. //活动条例图片
  37. private String item_pic_url;
  38. //简略图片
  39. private String abbr_pic_url;
  40. //原价
  41. private BigDecimal market_price;
  42. //零售价格(现价)
  43. private BigDecimal retail_price;
  44. // 商品Id
  45. private Integer goods_id;
  46. // 商品参数
  47. private String goods_specification_name_value;
  48. // 子标题
  49. private String subtitle;
  50. // 团购最低价格
  51. private BigDecimal retail_min_price;
  52. // 最低开团人数
  53. private Integer min_open_group;
  54. //参团时间
  55. private Date open_time;
  56. private String end_time_str;
  57. private Date end_time;
  58. // 是否过期 true过期 false没过期
  59. private Boolean overdue;
  60. //参团状态 0待付款 1拼团中 2拼团成功 3拼团失败
  61. private Integer open_attend_status;
  62. //当前参团人数
  63. private Integer attend_num;
  64. // 订单费用
  65. private BigDecimal order_price;
  66. // 订单费用
  67. private BigDecimal actual_price;
  68. // 商品数量
  69. private Integer number;
  70. // group_id
  71. private Long group_id;
  72. // order_id
  73. private Long order_id;
  74. public Long getId() {
  75. return id;
  76. }
  77. public void setId(Long id) {
  78. this.id = id;
  79. }
  80. public Long getUser_id() {
  81. return user_id;
  82. }
  83. public void setUser_id(Long user_id) {
  84. this.user_id = user_id;
  85. }
  86. public Integer getAttend_status() {
  87. return attend_status;
  88. }
  89. public void setAttend_status(Integer attend_status) {
  90. this.attend_status = attend_status;
  91. }
  92. public String getNickname() {
  93. return nickname;
  94. }
  95. public void setNickname(String nickname) {
  96. this.nickname = nickname;
  97. }
  98. public String getAvatar() {
  99. return avatar;
  100. }
  101. public void setAvatar(String avatar) {
  102. this.avatar = avatar;
  103. }
  104. public Long getOpen_id() {
  105. return open_id;
  106. }
  107. public void setOpen_id(Long open_id) {
  108. this.open_id = open_id;
  109. }
  110. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  111. public Date getAttend_time() {
  112. return attend_time;
  113. }
  114. public void setAttend_time(Date attend_time) {
  115. this.attend_time = attend_time;
  116. }
  117. public Integer getGroup_head() {
  118. return group_head;
  119. }
  120. public void setGroup_head(Integer group_head) {
  121. this.group_head = group_head;
  122. }
  123. public String getTitle() {
  124. return title;
  125. }
  126. public void setTitle(String title) {
  127. this.title = title;
  128. }
  129. public String getItem_pic_url() {
  130. return item_pic_url;
  131. }
  132. public void setItem_pic_url(String item_pic_url) {
  133. this.item_pic_url = item_pic_url;
  134. }
  135. public BigDecimal getMarket_price() {
  136. return market_price;
  137. }
  138. public void setMarket_price(BigDecimal market_price) {
  139. this.market_price = market_price;
  140. }
  141. public BigDecimal getRetail_price() {
  142. return retail_price;
  143. }
  144. public void setRetail_price(BigDecimal retail_price) {
  145. this.retail_price = retail_price;
  146. }
  147. public Integer getGoods_id() {
  148. return goods_id;
  149. }
  150. public void setGoods_id(Integer goods_id) {
  151. this.goods_id = goods_id;
  152. }
  153. public String getSubtitle() {
  154. return subtitle;
  155. }
  156. public void setSubtitle(String subtitle) {
  157. this.subtitle = subtitle;
  158. }
  159. public BigDecimal getRetail_min_price() {
  160. return retail_min_price;
  161. }
  162. public void setRetail_min_price(BigDecimal retail_min_price) {
  163. this.retail_min_price = retail_min_price;
  164. }
  165. public Integer getMin_open_group() {
  166. return min_open_group;
  167. }
  168. public void setMin_open_group(Integer min_open_group) {
  169. this.min_open_group = min_open_group;
  170. }
  171. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  172. public Date getOpen_time() {
  173. return open_time;
  174. }
  175. public void setOpen_time(Date open_time) {
  176. this.open_time = open_time;
  177. }
  178. public Date getEnd_time() {
  179. return end_time;
  180. }
  181. public String getEnd_time_str() {
  182. if (!StringUtils.isNotEmpty(end_time_str) && null != end_time) {
  183. end_time_str = DateUtils.timeToStr(end_time.getTime(), DateUtils.DATE_TIME_PATTERN);
  184. }
  185. return end_time_str;
  186. }
  187. public Boolean getOverdue() {
  188. if (null == overdue && null != end_time) {
  189. overdue = new Date().after(end_time);
  190. }
  191. return overdue;
  192. }
  193. public void setEnd_time(Date end_time) {
  194. this.end_time = end_time;
  195. }
  196. public Integer getOpen_attend_status() {
  197. return open_attend_status;
  198. }
  199. public void setOpen_attend_status(Integer open_attend_status) {
  200. this.open_attend_status = open_attend_status;
  201. }
  202. public Integer getAttend_num() {
  203. return attend_num;
  204. }
  205. public void setAttend_num(Integer attend_num) {
  206. this.attend_num = attend_num;
  207. }
  208. public String getGoods_specification_name_value() {
  209. return goods_specification_name_value;
  210. }
  211. public void setGoods_specification_name_value(String goods_specification_name_value) {
  212. this.goods_specification_name_value = goods_specification_name_value;
  213. }
  214. public BigDecimal getOrder_price() {
  215. return order_price;
  216. }
  217. public void setOrder_price(BigDecimal order_price) {
  218. this.order_price = order_price;
  219. }
  220. public Integer getNumber() {
  221. return number;
  222. }
  223. public void setNumber(Integer number) {
  224. this.number = number;
  225. }
  226. public Long getGroup_id() {
  227. return group_id;
  228. }
  229. public void setGroup_id(Long group_id) {
  230. this.group_id = group_id;
  231. }
  232. public Long getOrder_id() {
  233. return order_id;
  234. }
  235. public void setOrder_id(Long order_id) {
  236. this.order_id = order_id;
  237. }
  238. public BigDecimal getActual_price() {
  239. return actual_price;
  240. }
  241. public void setActual_price(BigDecimal actual_price) {
  242. this.actual_price = actual_price;
  243. }
  244. public String getAbbr_pic_url() {
  245. return abbr_pic_url;
  246. }
  247. public void setAbbr_pic_url(String abbr_pic_url) {
  248. this.abbr_pic_url = abbr_pic_url;
  249. }
  250. }