CartVo.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 createrSn;
  47. private Date createTime;
  48. private String moderSn;
  49. private Date modTime;
  50. private Date tstm;
  51. public String getSku() {
  52. return sku;
  53. }
  54. public void setSku(String sku) {
  55. this.sku = sku;
  56. }
  57. public String getGoodsBizType() {
  58. return goodsBizType;
  59. }
  60. public void setGoodsBizType(String goodsBizType) {
  61. this.goodsBizType = goodsBizType;
  62. }
  63. public String getCreaterSn() {
  64. return createrSn;
  65. }
  66. public void setCreaterSn(String createrSn) {
  67. this.createrSn = createrSn;
  68. }
  69. public Date getCreateTime() {
  70. return createTime;
  71. }
  72. public void setCreateTime(Date createTime) {
  73. this.createTime = createTime;
  74. }
  75. public String getModerSn() {
  76. return moderSn;
  77. }
  78. public void setModerSn(String moderSn) {
  79. this.moderSn = moderSn;
  80. }
  81. public Date getModTime() {
  82. return modTime;
  83. }
  84. public void setModTime(Date modTime) {
  85. this.modTime = modTime;
  86. }
  87. public Date getTstm() {
  88. return tstm;
  89. }
  90. public void setTstm(Date tstm) {
  91. this.tstm = tstm;
  92. }
  93. public Long getId() {
  94. return id;
  95. }
  96. public void setId(Long id) {
  97. this.id = id;
  98. }
  99. public Long getUser_id() {
  100. return user_id;
  101. }
  102. public void setUser_id(Long user_id) {
  103. this.user_id = user_id;
  104. }
  105. public Long getStore_id() {
  106. return store_id;
  107. }
  108. public void setStore_id(Long store_id) {
  109. this.store_id = store_id;
  110. }
  111. public Long getGoods_id() {
  112. return goods_id;
  113. }
  114. public void setGoods_id(Long goods_id) {
  115. this.goods_id = goods_id;
  116. }
  117. public String getGoods_sn() {
  118. return goods_sn;
  119. }
  120. public void setGoods_sn(String goods_sn) {
  121. this.goods_sn = goods_sn;
  122. }
  123. public Long getProduct_id() {
  124. return product_id;
  125. }
  126. public void setProduct_id(Long product_id) {
  127. this.product_id = product_id;
  128. }
  129. public String getGoods_name() {
  130. return goods_name;
  131. }
  132. public void setGoods_name(String goods_name) {
  133. this.goods_name = goods_name;
  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 getNumber() {
  148. return number;
  149. }
  150. public void setNumber(Integer number) {
  151. this.number = number;
  152. }
  153. public String getGoods_specification_name_value() {
  154. return goods_specification_name_value;
  155. }
  156. public void setGoods_specification_name_value(String goods_specification_name_value) {
  157. this.goods_specification_name_value = goods_specification_name_value;
  158. }
  159. public String getGoods_specification_ids() {
  160. return goods_specification_ids;
  161. }
  162. public void setGoods_specification_ids(String goods_specification_ids) {
  163. this.goods_specification_ids = goods_specification_ids;
  164. }
  165. public Integer getChecked() {
  166. return checked;
  167. }
  168. public void setChecked(Integer checked) {
  169. this.checked = checked;
  170. }
  171. public String getList_pic_url() {
  172. return list_pic_url;
  173. }
  174. public void setList_pic_url(String list_pic_url) {
  175. this.list_pic_url = list_pic_url;
  176. }
  177. public BigDecimal getRetail_product_price() {
  178. return retail_product_price;
  179. }
  180. public void setRetail_product_price(BigDecimal retail_product_price) {
  181. this.retail_product_price = retail_product_price;
  182. }
  183. public BigDecimal getCrash_save_price() {
  184. if (null == crash_save_price && null != retail_product_price && null != retail_price) {
  185. crash_save_price = retail_product_price.subtract(retail_price);
  186. }
  187. return crash_save_price;
  188. }
  189. public void setCrash_save_price(BigDecimal crash_save_price) {
  190. this.crash_save_price = crash_save_price;
  191. }
  192. }