Helius
2021-03-12 62bf99d419e470f5556f21682d0d8ee8b9e20412
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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;
    }
}