package com.matrix.system.hive.pojo;
|
|
|
import com.matrix.core.tools.UUIDUtil;
|
import com.matrix.system.hive.bean.ShoppingGoods;
|
import com.matrix.system.hive.bean.ShoppingGoodsAssemble;
|
|
/**
|
* 购物车类 本购物车不需要保存到数据库,在健康顾问切换了操作用户后会被清空
|
* @author 姜友瑶
|
*/
|
public class ShoppingCarItem {
|
/**
|
* carItem的id
|
*/
|
private String id;
|
|
/**
|
* 商品类型
|
*/
|
private String type;
|
|
/**
|
* 商品id
|
*/
|
private Long goodsId;
|
|
|
/**
|
* 商品数量
|
*/
|
private Integer count;
|
|
/**
|
* 是否为赠送
|
* 是否
|
*/
|
private String isFree;
|
|
/**
|
* 如果是家居产品或者套餐的话,每次添加到购物车是某个assembelId;
|
*/
|
private Long assembleId;
|
|
|
private ShoppingGoods shoppingGoods;
|
|
/**
|
* 如果是家居产品或者套餐的话,每次添加到购物车是某个assembelId;
|
*/
|
private ShoppingGoodsAssemble goodsAssemble;
|
|
public ShoppingCarItem() {
|
this.id = UUIDUtil.getRandomID();
|
}
|
|
public Long getGoodsId() {
|
return goodsId;
|
}
|
|
public void setGoodsId(Long goodsId) {
|
this.goodsId = goodsId;
|
}
|
|
public Integer getCount() {
|
return count;
|
}
|
|
public void setCount(Integer count) {
|
this.count = count;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public Long getAssembleId() {
|
return assembleId;
|
}
|
|
public void setAssembleId(Long assembleId) {
|
this.assembleId = assembleId;
|
}
|
|
public ShoppingGoods getShoppingGoods() {
|
return shoppingGoods;
|
}
|
|
public void setShoppingGoods(ShoppingGoods shoppingGoods) {
|
this.shoppingGoods = shoppingGoods;
|
}
|
|
public String getIsFree() {
|
return isFree;
|
}
|
|
public void setIsFree(String isFree) {
|
this.isFree = isFree;
|
}
|
|
public ShoppingGoodsAssemble getGoodsAssemble() {
|
return goodsAssemble;
|
}
|
|
public void setGoodsAssemble(ShoppingGoodsAssemble goodsAssemble) {
|
this.goodsAssemble = goodsAssemble;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
}
|