CartVo.java 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. private String merchSn;
  54. public String getMerchSn() {
  55. return merchSn;
  56. }
  57. public void setMerchSn(String merchSn) {
  58. this.merchSn = merchSn;
  59. }
  60. public Integer getStockNum() {
  61. return stockNum;
  62. }
  63. public void setStockNum(Integer stockNum) {
  64. this.stockNum = stockNum;
  65. }
  66. public String getGoodsBizTypeName() {
  67. return goodsBizTypeName;
  68. }
  69. public void setGoodsBizTypeName(String goodsBizTypeName) {
  70. this.goodsBizTypeName = goodsBizTypeName;
  71. }
  72. public String getSku() {
  73. return sku;
  74. }
  75. public void setSku(String sku) {
  76. this.sku = sku;
  77. }
  78. public String getGoodsBizType() {
  79. return goodsBizType;
  80. }
  81. public void setGoodsBizType(String goodsBizType) {
  82. this.goodsBizType = goodsBizType;
  83. }
  84. public String getCreaterSn() {
  85. return createrSn;
  86. }
  87. public void setCreaterSn(String createrSn) {
  88. this.createrSn = createrSn;
  89. }
  90. public Date getCreateTime() {
  91. return createTime;
  92. }
  93. public void setCreateTime(Date createTime) {
  94. this.createTime = createTime;
  95. }
  96. public String getModerSn() {
  97. return moderSn;
  98. }
  99. public void setModerSn(String moderSn) {
  100. this.moderSn = moderSn;
  101. }
  102. public Date getModTime() {
  103. return modTime;
  104. }
  105. public void setModTime(Date modTime) {
  106. this.modTime = modTime;
  107. }
  108. public Date getTstm() {
  109. return tstm;
  110. }
  111. public void setTstm(Date tstm) {
  112. this.tstm = tstm;
  113. }
  114. public Long getId() {
  115. return id;
  116. }
  117. public void setId(Long id) {
  118. this.id = id;
  119. }
  120. public Long getUser_id() {
  121. return user_id;
  122. }
  123. public void setUser_id(Long user_id) {
  124. this.user_id = user_id;
  125. }
  126. public Long getStore_id() {
  127. return store_id;
  128. }
  129. public void setStore_id(Long store_id) {
  130. this.store_id = store_id;
  131. }
  132. public Long getGoods_id() {
  133. return goods_id;
  134. }
  135. public void setGoods_id(Long goods_id) {
  136. this.goods_id = goods_id;
  137. }
  138. public String getGoods_sn() {
  139. return goods_sn;
  140. }
  141. public void setGoods_sn(String goods_sn) {
  142. this.goods_sn = goods_sn;
  143. }
  144. public Long getProduct_id() {
  145. return product_id;
  146. }
  147. public void setProduct_id(Long product_id) {
  148. this.product_id = product_id;
  149. }
  150. public String getGoods_name() {
  151. return goods_name;
  152. }
  153. public void setGoods_name(String goods_name) {
  154. this.goods_name = goods_name;
  155. }
  156. public BigDecimal getMarket_price() {
  157. return market_price;
  158. }
  159. public void setMarket_price(BigDecimal market_price) {
  160. this.market_price = market_price;
  161. }
  162. public BigDecimal getRetail_price() {
  163. return retail_price;
  164. }
  165. public void setRetail_price(BigDecimal retail_price) {
  166. this.retail_price = retail_price;
  167. }
  168. public Integer getNumber() {
  169. return number;
  170. }
  171. public void setNumber(Integer number) {
  172. this.number = number;
  173. }
  174. public String getGoods_specification_name_value() {
  175. return goods_specification_name_value;
  176. }
  177. public void setGoods_specification_name_value(String goods_specification_name_value) {
  178. this.goods_specification_name_value = goods_specification_name_value;
  179. }
  180. public String getGoods_specification_ids() {
  181. return goods_specification_ids;
  182. }
  183. public void setGoods_specification_ids(String goods_specification_ids) {
  184. this.goods_specification_ids = goods_specification_ids;
  185. }
  186. public Integer getChecked() {
  187. return checked;
  188. }
  189. public void setChecked(Integer checked) {
  190. this.checked = checked;
  191. }
  192. public String getList_pic_url() {
  193. return list_pic_url;
  194. }
  195. public void setList_pic_url(String list_pic_url) {
  196. this.list_pic_url = list_pic_url;
  197. }
  198. public BigDecimal getRetail_product_price() {
  199. return retail_product_price;
  200. }
  201. public void setRetail_product_price(BigDecimal retail_product_price) {
  202. this.retail_product_price = retail_product_price;
  203. }
  204. public BigDecimal getCrash_save_price() {
  205. if (null == crash_save_price && null != retail_product_price && null != retail_price) {
  206. crash_save_price = retail_product_price.subtract(retail_price);
  207. }
  208. return crash_save_price;
  209. }
  210. public void setCrash_save_price(BigDecimal crash_save_price) {
  211. this.crash_save_price = crash_save_price;
  212. }
  213. }