CartVo.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. package com.kmall.api.entity;
  2. import java.io.Serializable;
  3. import java.math.BigDecimal;
  4. import java.util.Date;
  5. /**
  6. * @author Scott
  7. * @email
  8. * @date 2017-08-15 08:03:39
  9. */
  10. public class CartVo implements Serializable {
  11. private static final long serialVersionUID = 1L;
  12. //主键
  13. private Long id;
  14. //会员Id
  15. private Long user_id;
  16. //store_id
  17. private Long store_id;
  18. //商品Id
  19. private Long goods_id;
  20. //商品序列号
  21. private String goods_sn;
  22. //产品Id
  23. private Long product_id;
  24. //产品名称
  25. private String goods_name;
  26. //市场价
  27. private BigDecimal market_price;
  28. //零售价格
  29. private BigDecimal retail_price;
  30. //product表中的零售价格
  31. private BigDecimal retail_product_price;
  32. //数量
  33. private Integer number;
  34. //规格属性组成的字符串,用来显示用
  35. private String goods_specification_name_value;
  36. //product表对应的goods_specifition_ids
  37. private String goods_specification_ids;
  38. //
  39. private Integer checked;
  40. // 节省金额
  41. private BigDecimal crash_save_price;
  42. //商品图片
  43. private String list_pic_url;
  44. private String sku;
  45. private String goodsBizType;
  46. private String goodsBizTypeName;
  47. private String createrSn;
  48. private Date createTime;
  49. private String moderSn;
  50. private Date modTime;
  51. private Date tstm;
  52. private Integer stockNum;
  53. public Integer getStockNum() {
  54. return stockNum;
  55. }
  56. public void setStockNum(Integer stockNum) {
  57. this.stockNum = stockNum;
  58. }
  59. public String getGoodsBizTypeName() {
  60. return goodsBizTypeName;
  61. }
  62. public void setGoodsBizTypeName(String goodsBizTypeName) {
  63. this.goodsBizTypeName = goodsBizTypeName;
  64. }
  65. public String getSku() {
  66. return sku;
  67. }
  68. public void setSku(String sku) {
  69. this.sku = sku;
  70. }
  71. public String getGoodsBizType() {
  72. return goodsBizType;
  73. }
  74. public void setGoodsBizType(String goodsBizType) {
  75. this.goodsBizType = goodsBizType;
  76. }
  77. public String getCreaterSn() {
  78. return createrSn;
  79. }
  80. public void setCreaterSn(String createrSn) {
  81. this.createrSn = createrSn;
  82. }
  83. public Date getCreateTime() {
  84. return createTime;
  85. }
  86. public void setCreateTime(Date createTime) {
  87. this.createTime = createTime;
  88. }
  89. public String getModerSn() {
  90. return moderSn;
  91. }
  92. public void setModerSn(String moderSn) {
  93. this.moderSn = moderSn;
  94. }
  95. public Date getModTime() {
  96. return modTime;
  97. }
  98. public void setModTime(Date modTime) {
  99. this.modTime = modTime;
  100. }
  101. public Date getTstm() {
  102. return tstm;
  103. }
  104. public void setTstm(Date tstm) {
  105. this.tstm = tstm;
  106. }
  107. public Long getId() {
  108. return id;
  109. }
  110. public void setId(Long id) {
  111. this.id = id;
  112. }
  113. public Long getUser_id() {
  114. return user_id;
  115. }
  116. public void setUser_id(Long user_id) {
  117. this.user_id = user_id;
  118. }
  119. public Long getStore_id() {
  120. return store_id;
  121. }
  122. public void setStore_id(Long store_id) {
  123. this.store_id = store_id;
  124. }
  125. public Long getGoods_id() {
  126. return goods_id;
  127. }
  128. public void setGoods_id(Long goods_id) {
  129. this.goods_id = goods_id;
  130. }
  131. public String getGoods_sn() {
  132. return goods_sn;
  133. }
  134. public void setGoods_sn(String goods_sn) {
  135. this.goods_sn = goods_sn;
  136. }
  137. public Long getProduct_id() {
  138. return product_id;
  139. }
  140. public void setProduct_id(Long product_id) {
  141. this.product_id = product_id;
  142. }
  143. public String getGoods_name() {
  144. return goods_name;
  145. }
  146. public void setGoods_name(String goods_name) {
  147. this.goods_name = goods_name;
  148. }
  149. public BigDecimal getMarket_price() {
  150. return market_price;
  151. }
  152. public void setMarket_price(BigDecimal market_price) {
  153. this.market_price = market_price;
  154. }
  155. public BigDecimal getRetail_price() {
  156. return retail_price;
  157. }
  158. public void setRetail_price(BigDecimal retail_price) {
  159. this.retail_price = retail_price;
  160. }
  161. public Integer getNumber() {
  162. return number;
  163. }
  164. public void setNumber(Integer number) {
  165. this.number = number;
  166. }
  167. public String getGoods_specification_name_value() {
  168. return goods_specification_name_value;
  169. }
  170. public void setGoods_specification_name_value(String goods_specification_name_value) {
  171. this.goods_specification_name_value = goods_specification_name_value;
  172. }
  173. public String getGoods_specification_ids() {
  174. return goods_specification_ids;
  175. }
  176. public void setGoods_specification_ids(String goods_specification_ids) {
  177. this.goods_specification_ids = goods_specification_ids;
  178. }
  179. public Integer getChecked() {
  180. return checked;
  181. }
  182. public void setChecked(Integer checked) {
  183. this.checked = checked;
  184. }
  185. public String getList_pic_url() {
  186. return list_pic_url;
  187. }
  188. public void setList_pic_url(String list_pic_url) {
  189. this.list_pic_url = list_pic_url;
  190. }
  191. public BigDecimal getRetail_product_price() {
  192. return retail_product_price;
  193. }
  194. public void setRetail_product_price(BigDecimal retail_product_price) {
  195. this.retail_product_price = retail_product_price;
  196. }
  197. public BigDecimal getCrash_save_price() {
  198. if (null == crash_save_price && null != retail_product_price && null != retail_price) {
  199. crash_save_price = retail_product_price.subtract(retail_price);
  200. }
  201. return crash_save_price;
  202. }
  203. public void setCrash_save_price(BigDecimal crash_save_price) {
  204. this.crash_save_price = crash_save_price;
  205. }
  206. }