yujian
2019-12-07 220bdea9288ee5b07f124900eb71ac1f56552b55
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
package com.yeshi.fanli.entity.bus.share;
 
import java.math.BigDecimal;
import java.util.Date;
 
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
 
import com.google.gson.annotations.Expose;
 
@Table("yeshi_ec_share_goods_record")
public class UserShareGoodsRecord {
 
    // 分享来源
    public enum ShareSourceTypeEnum {
        storage("选品库"), activity("动态"), goodsDetail("商品详情页");
        
        private final String desc;
        
        private ShareSourceTypeEnum(String desc) {
            this.desc = desc;
        }
 
        public String getDesc() {
            return desc;
        }
    }
    
    public static String SHARETYPE_SINGLE = "single"; // 单个商品分享
    public static String SHARETYPE_GROUP = "group"; //  多商品分享
    
    @Expose
    @Column(name = "sgr_id")
    private Long id;
 
    // 用户id
    @Expose
    @Column(name = "sgr_uid")
    private Long uid;
 
    // 分享来源
    @Expose
    @Column(name = "sgr_source")
    private ShareSourceTypeEnum source;
 
    // 显示主图
    @Expose
    @Column(name = "sgr_picture")
    private String picture;
    
    // 显示标题内容
    @Expose
    @Column(name = "sgr_title")
    private String title;
    
    // 是否已分享  状态:0初始值 1已分享
    @Expose
    @Column(name = "sgr_share_state")
    private Integer shareState;
    
    // 分享时间
    @Column(name = "sgr_createtime")
    private Date createTime;
    
    // 更新时间 : 单个商品重复分享时 只更新 不重复生成分享记录
    @Column(name = "sgr_updatetime")
    private Date updateTime;
    
    // 分享时间
    @Expose
    private Long shareTime;
 
 
    // 分享类型
    @Expose
    private String shareType;
    
    // 商品总数
    @Expose
    private int totalGoods;
    
    // 今日浏览
    @Expose
    private int todayBrowse;
    
    // 累计浏览
    @Expose
    private int totalBrowse;
    
    // 商品总数
    @Expose
    private int totalOrder;
    
    // 预计收益
    private BigDecimal revenueMoney;
    
    // 显示收益
    @Expose
    private BigDecimal totalMoney;
 
 
    
    public UserShareGoodsRecord(){}
    
    public UserShareGoodsRecord(Long id){
        this.id = id;
    }
    
    
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getUid() {
        return uid;
    }
 
    public void setUid(Long uid) {
        this.uid = uid;
    }
 
    public ShareSourceTypeEnum getSource() {
        return source;
    }
 
    public void setSource(ShareSourceTypeEnum source) {
        this.source = source;
    }
 
    public String getPicture() {
        return picture;
    }
 
    public void setPicture(String picture) {
        this.picture = picture;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    public String getShareType() {
        return shareType;
    }
 
    public void setShareType(String shareType) {
        this.shareType = shareType;
    }
 
    public int getTotalGoods() {
        return totalGoods;
    }
 
    public void setTotalGoods(int totalGoods) {
        this.totalGoods = totalGoods;
    }
 
    public int getTodayBrowse() {
        return todayBrowse;
    }
 
    public void setTodayBrowse(int todayBrowse) {
        this.todayBrowse = todayBrowse;
    }
 
    public int getTotalBrowse() {
        return totalBrowse;
    }
 
    public void setTotalBrowse(int totalBrowse) {
        this.totalBrowse = totalBrowse;
    }
 
    public int getTotalOrder() {
        return totalOrder;
    }
 
    public void setTotalOrder(int totalOrder) {
        this.totalOrder = totalOrder;
    }
 
    public BigDecimal getTotalMoney() {
        return totalMoney;
    }
 
    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }
 
    public Long getShareTime() {
        return shareTime;
    }
 
    public void setShareTime(Long shareTime) {
        this.shareTime = shareTime;
    }
 
    public BigDecimal getRevenueMoney() {
        return revenueMoney;
    }
 
    public void setRevenueMoney(BigDecimal revenueMoney) {
        this.revenueMoney = revenueMoney;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public Integer getShareState() {
        return shareState;
    }
 
    public void setShareState(Integer shareState) {
        this.shareState = shareState;
    }
}