123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- package com.kmall.api.entity;
- import java.io.Serializable;
- import java.math.BigDecimal;
- import java.util.Date;
- /**
- * @author Scott
- * @email
- * @date 2017-08-15 08:03:39
- */
- public class CartVo implements Serializable {
- private static final long serialVersionUID = 1L;
- //主键
- private Long id;
- //会员Id
- private Long user_id;
- //store_id
- private Long store_id;
- //商品Id
- private Long goods_id;
- //商品序列号
- private String goods_sn;
- //产品Id
- private Long product_id;
- //产品名称
- private String goods_name;
- //市场价
- private BigDecimal market_price;
- //零售价格
- private BigDecimal retail_price;
- //product表中的零售价格
- private BigDecimal retail_product_price;
- //数量
- private Integer number;
- //规格属性组成的字符串,用来显示用
- private String goods_specification_name_value;
- //product表对应的goods_specifition_ids
- private String goods_specification_ids;
- //
- private Integer checked;
- // 节省金额
- private BigDecimal crash_save_price;
- //商品图片
- private String list_pic_url;
- private String sku;
- private String goodsBizType;
- private String goodsBizTypeName;
- private String createrSn;
- private Date createTime;
- private String moderSn;
- private Date modTime;
- private Date tstm;
- private Integer stockNum;
- public Integer getStockNum() {
- return stockNum;
- }
- public void setStockNum(Integer stockNum) {
- this.stockNum = stockNum;
- }
- public String getGoodsBizTypeName() {
- return goodsBizTypeName;
- }
- public void setGoodsBizTypeName(String goodsBizTypeName) {
- this.goodsBizTypeName = goodsBizTypeName;
- }
- public String getSku() {
- return sku;
- }
- public void setSku(String sku) {
- this.sku = sku;
- }
- public String getGoodsBizType() {
- return goodsBizType;
- }
- public void setGoodsBizType(String goodsBizType) {
- this.goodsBizType = goodsBizType;
- }
- public String getCreaterSn() {
- return createrSn;
- }
- public void setCreaterSn(String createrSn) {
- this.createrSn = createrSn;
- }
- public Date getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- public String getModerSn() {
- return moderSn;
- }
- public void setModerSn(String moderSn) {
- this.moderSn = moderSn;
- }
- public Date getModTime() {
- return modTime;
- }
- public void setModTime(Date modTime) {
- this.modTime = modTime;
- }
- public Date getTstm() {
- return tstm;
- }
- public void setTstm(Date tstm) {
- this.tstm = tstm;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Long getUser_id() {
- return user_id;
- }
- public void setUser_id(Long user_id) {
- this.user_id = user_id;
- }
- public Long getStore_id() {
- return store_id;
- }
- public void setStore_id(Long store_id) {
- this.store_id = store_id;
- }
- public Long getGoods_id() {
- return goods_id;
- }
- public void setGoods_id(Long goods_id) {
- this.goods_id = goods_id;
- }
- public String getGoods_sn() {
- return goods_sn;
- }
- public void setGoods_sn(String goods_sn) {
- this.goods_sn = goods_sn;
- }
- public Long getProduct_id() {
- return product_id;
- }
- public void setProduct_id(Long product_id) {
- this.product_id = product_id;
- }
- public String getGoods_name() {
- return goods_name;
- }
- public void setGoods_name(String goods_name) {
- this.goods_name = goods_name;
- }
- public BigDecimal getMarket_price() {
- return market_price;
- }
- public void setMarket_price(BigDecimal market_price) {
- this.market_price = market_price;
- }
- public BigDecimal getRetail_price() {
- return retail_price;
- }
- public void setRetail_price(BigDecimal retail_price) {
- this.retail_price = retail_price;
- }
- public Integer getNumber() {
- return number;
- }
- public void setNumber(Integer number) {
- this.number = number;
- }
- public String getGoods_specification_name_value() {
- return goods_specification_name_value;
- }
- public void setGoods_specification_name_value(String goods_specification_name_value) {
- this.goods_specification_name_value = goods_specification_name_value;
- }
- public String getGoods_specification_ids() {
- return goods_specification_ids;
- }
- public void setGoods_specification_ids(String goods_specification_ids) {
- this.goods_specification_ids = goods_specification_ids;
- }
- public Integer getChecked() {
- return checked;
- }
- public void setChecked(Integer checked) {
- this.checked = checked;
- }
- public String getList_pic_url() {
- return list_pic_url;
- }
- public void setList_pic_url(String list_pic_url) {
- this.list_pic_url = list_pic_url;
- }
- public BigDecimal getRetail_product_price() {
- return retail_product_price;
- }
- public void setRetail_product_price(BigDecimal retail_product_price) {
- this.retail_product_price = retail_product_price;
- }
- public BigDecimal getCrash_save_price() {
- if (null == crash_save_price && null != retail_product_price && null != retail_price) {
- crash_save_price = retail_product_price.subtract(retail_price);
- }
- return crash_save_price;
- }
- public void setCrash_save_price(BigDecimal crash_save_price) {
- this.crash_save_price = crash_save_price;
- }
- }
|