admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
package com.yeshi.fanli.entity.order;
 
import java.math.BigDecimal;
import java.util.Date;
 
import org.yeshi.utils.generater.mybatis.Column;
import org.yeshi.utils.generater.mybatis.Table;
 
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.bus.user.UserInfo;
 
/**
 * 订单-简版
 * 
 * @author yj
 *
 * @date 2018年12月23日
 */
 
@Table("yeshi_ec_common_order")
public class CommonOrder {
 
    // 订单状态 1-付款,成功 2-结算(已收货) 3-维权 4-失效
    public final static int STATE_FK = 1;
    public final static int STATE_JS = 2;
    public final static int STATE_WQ = 3;
    public final static int STATE_SX = 4;
 
    // 整个订单状态 1-有效 2-部分有效/失效 3-失效
    public final static int STATE_WHOLE_ORDER_YOUXIAO = 1;
    public final static int STATE_WHOLE_ORDER_BUFENYOUXIAO = 2;
    public final static int STATE_WHOLE_ORDER_SHIXIAO = 3;
 
    // 订单红包类型图片
    public final static String TYPE_FANLI = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_fanli.png";
    public final static String TYPE_INVITE = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_invite.png";
    public final static String TYPE_SHARE = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_share.png";
 
    public final static int ORDER_TYPE_ZIGOU = 1;// 自购
    public final static int ORDER_TYPE_SHARE = 20;// 分享
 
    @Column(name = "co_id")
    private Long id;
 
    // 用户id
    @Column(name = "co_uid")
    private UserInfo userInfo;
 
    // 订单号
    @Expose
    @Column(name = "co_order_no")
    private String orderNo;
 
    // 类型:淘宝/京东
    @Expose
    @Column(name = "co_source_type")
    private Integer sourceType;
 
    // 组合来源
    @Column(name = "co_source_position")
    private String sourcePosition;
 
    // 商品
    @Expose
    @Column(name = "co_order_goods_id")
    private CommonOrderGoods commonOrderGoods;
 
    // 商品数
    @Column(name = "co_count")
    private Integer count;
 
    // 状态:订单付款、订单失效、订单结算
    @Expose
    @Column(name = "co_state")
    private Integer state;
 
    // 整个订单状态:有效 、 部分有效/失效 、 失效
    @Expose
    @Column(name = "co_state_whole_order")
    private Integer stateWholeOrder;
 
    // 效果预估
    @Column(name = "co_estimate")
    private BigDecimal estimate;
 
    // 预估收入
    @Column(name = "co_eIncome")
    private BigDecimal eIncome;
 
    // 付款金额
    @Column(name = "co_payment")
    private BigDecimal payment;
 
    // 结算金额
    @Column(name = "co_settlement")
    private BigDecimal settlement;
 
    // 下单时间-第三方创建时间
    @Column(name = "co_third_create_time")
    private Date thirdCreateTime;
 
    // 收货时间-结算时间
    @Column(name = "co_settle_time")
    private Date settleTime;
 
    @Column(name = "co_order_by")
    private Integer orderBy;// 子订单的排序值
 
    @Column(name = "co_trade_id")
    private String tradeId;
 
    // 状态说明
    @Column(name = "co_state_desc")
    private String stateDesc;
 
    // 创建时间
    @Column(name = "co_create_time")
    private Date createTime;
 
    // 更新时间
    @Column(name = "co_update_time")
    private Date updateTime;
 
    @Column(name = "co_urank")
    private Integer urank;// 用户等级 100-为超级会员
 
    @Column(name = "co_child_source_type")
    private String childSourceType;// 子来源类型
 
    public String getChildSourceType() {
        return childSourceType;
    }
 
    public void setChildSourceType(String childSourceType) {
        this.childSourceType = childSourceType;
    }
 
    public Integer getUrank() {
        return urank;
    }
 
    public void setUrank(Integer urank) {
        this.urank = urank;
    }
 
    public CommonOrder() {
 
    }
 
    public CommonOrder(Long id) {
        this.id = id;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public UserInfo getUserInfo() {
        return userInfo;
    }
 
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
 
    public String getOrderNo() {
        return orderNo;
    }
 
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
 
    public Integer getSourceType() {
        return sourceType;
    }
 
    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }
 
    public String getSourcePosition() {
        return sourcePosition;
    }
 
    public void setSourcePosition(String sourcePosition) {
        this.sourcePosition = sourcePosition;
    }
 
    public CommonOrderGoods getCommonOrderGoods() {
        return commonOrderGoods;
    }
 
    public void setCommonOrderGoods(CommonOrderGoods commonOrderGoods) {
        this.commonOrderGoods = commonOrderGoods;
    }
 
    public Integer getCount() {
        return count;
    }
 
    public void setCount(Integer count) {
        this.count = count;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    public BigDecimal getEstimate() {
        return estimate;
    }
 
    public void setEstimate(BigDecimal estimate) {
        this.estimate = estimate;
    }
 
    public BigDecimal geteIncome() {
        return eIncome;
    }
 
    public void seteIncome(BigDecimal eIncome) {
        this.eIncome = eIncome;
    }
 
    public BigDecimal getPayment() {
        return payment;
    }
 
    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }
 
    public BigDecimal getSettlement() {
        return settlement;
    }
 
    public void setSettlement(BigDecimal settlement) {
        this.settlement = settlement;
    }
 
    public Date getThirdCreateTime() {
        return thirdCreateTime;
    }
 
    public void setThirdCreateTime(Date thirdCreateTime) {
        this.thirdCreateTime = thirdCreateTime;
    }
 
    public Date getSettleTime() {
        return settleTime;
    }
 
    public void setSettleTime(Date settleTime) {
        this.settleTime = settleTime;
    }
 
    public Integer getOrderBy() {
        return orderBy;
    }
 
    public void setOrderBy(Integer orderBy) {
        this.orderBy = orderBy;
    }
 
    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 Integer getStateWholeOrder() {
        return stateWholeOrder;
    }
 
    public void setStateWholeOrder(Integer stateWholeOrder) {
        this.stateWholeOrder = stateWholeOrder;
    }
 
    public String getTradeId() {
        return tradeId;
    }
 
    public void setTradeId(String tradeId) {
        this.tradeId = tradeId;
    }
 
    public String getStateDesc() {
        return stateDesc;
    }
 
    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }
 
}