yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
package com.yeshi.fanli.entity.taobao;
 
import java.math.BigDecimal;
import java.util.Date;
 
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
 
import com.yeshi.fanli.entity.bus.user.HongBao;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import org.yeshi.utils.mybatis.Column;
 
//由PID产生的订单
@Entity
@org.yeshi.utils.mybatis.Table("yeshi_ec_pid_order")
@Table(name = "yeshi_ec_pid_order")
public class PidOrder {
 
    @javax.persistence.Column(name = "po_id")
    @Column(name = "po_id")
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;//
 
    @javax.persistence.Column(name = "po_order_createtime")
    @Column(name = "po_order_createtime")
    private Date orderCreateTime;// 创建时间
 
    @javax.persistence.Column(name = "po_goods_title")
    @Column(name = "po_goods_title")
    private String goodsTitle;// 商品信息
 
    @javax.persistence.Column(name = "po_auction_id")
    @Column(name = "po_auction_id")
    private Long auctionId;// 商品ID
 
    @javax.persistence.Column(name = "po_goods_num")
    @Column(name = "po_goods_num")
    private Integer goodsNum;// 商品数
 
    @javax.persistence.Column(name = "po_price")
    @Column(name = "po_price")
    private BigDecimal price;// 商品单价
 
    @javax.persistence.Column(name = "po_state")
    @Column(name = "po_state")
    private String state;// 订单状态
 
    @javax.persistence.Column(name = "po_order_type")
    @Column(name = "po_order_type")
    private String orderType;// 订单类型
 
    @javax.persistence.Column(name = "po_rate")
    @Column(name = "po_rate")
    private BigDecimal rate;// 收入比率
 
    @javax.persistence.Column(name = "po_pay_money")
    @Column(name = "po_pay_money")
    private BigDecimal payMoney;// 付款金额
 
    @javax.persistence.Column(name = "po_pre_money")
    @Column(name = "po_pre_money")
    private BigDecimal preMoney;// 效果预估*50% = 提成
 
    @javax.persistence.Column(name = "po_final_money")
    @Column(name = "po_final_money")
    private BigDecimal finalMoney;// 预估收入
 
    @javax.persistence.Column(name = "po_balance_time")
    @Column(name = "po_balance_time")
    private Date balanceTime;// 结算时间
 
    @javax.persistence.Column(name = "po_order_id")
    @Column(name = "po_order_id")
    private String orderId;// 订单编号
 
    @javax.persistence.Column(name = "po_type_name")
    @Column(name = "po_type_name")
    private String typeName;// 类目名称
 
    @javax.persistence.Column(name = "po_src_media_id")
    @Column(name = "po_src_media_id")
    private String srcMediaId;// 来源媒体ID
 
    @javax.persistence.Column(name = "po_adzone_id")
    @Column(name = "po_adzone_id")
    private String adzoneId;// 广告位ID
 
    @javax.persistence.Column(name = "po_createtime")
    @Column(name = "po_createtime")
    private Date createTime;// 本地创建时间
 
    @Column(name = "po_uid")
    @JoinColumn(name = "po_uid")
    @ManyToOne(fetch = FetchType.EAGER)
    private UserInfo userInfo;// 用户信息
 
    @javax.persistence.Column(name = "po_order_update_time")
    @Column(name = "po_order_update_time")
    private Date orderUpdateTime;// 更新淘宝联盟订单的更新时间 只有当首次插入,订单状态和预估效果更新后才会改变
 
    @javax.persistence.Column(name = "po_local_update_time")
    @Column(name = "po_local_update_time")
    private Date localUpdateTime;// 本地订单更新时间
 
    @javax.persistence.Column(name = "po_account_balance")
    @Column(name = "po_account_balance")
    private Boolean accountBalance;// 红包是否结算
 
    @javax.persistence.Column(name = "po_account_balance_time")
    @Column(name = "po_account_balance_time")
    private Date accountBalanceTime;//红包到账时间
    
    @javax.persistence.Column(name="po_beizhu")
    @Column(name = "po_beizhu")
    private String beizhu;
    
    @Column(name = "po_hongbao_id")
    @JoinColumn(name="po_hongbao_id")
    @ManyToOne(fetch = FetchType.EAGER)
    private HongBao hongBao;
 
    public String getBeizhu() {
        return beizhu;
    }
 
    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }
 
    public HongBao getHongBao() {
        return hongBao;
    }
 
    public void setHongBao(HongBao hongBao) {
        this.hongBao = hongBao;
    }
 
    public Date getAccountBalanceTime() {
        return accountBalanceTime;
    }
 
    public void setAccountBalanceTime(Date accountBalanceTime) {
        this.accountBalanceTime = accountBalanceTime;
    }
 
    public UserInfo getUserInfo() {
        return userInfo;
    }
 
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
 
    public Date getOrderUpdateTime() {
        return orderUpdateTime;
    }
 
    public void setOrderUpdateTime(Date orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }
 
    public Date getLocalUpdateTime() {
        return localUpdateTime;
    }
 
    public void setLocalUpdateTime(Date localUpdateTime) {
        this.localUpdateTime = localUpdateTime;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Date getOrderCreateTime() {
        return orderCreateTime;
    }
 
    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }
 
    public String getGoodsTitle() {
        return goodsTitle;
    }
 
    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }
 
    public Long getAuctionId() {
        return auctionId;
    }
 
    public void setAuctionId(Long auctionId) {
        this.auctionId = auctionId;
    }
 
    public Integer getGoodsNum() {
        return goodsNum;
    }
 
    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }
 
    public BigDecimal getPrice() {
        return price;
    }
 
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public String getOrderType() {
        return orderType;
    }
 
    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
 
    public BigDecimal getRate() {
        return rate;
    }
 
    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }
 
    public BigDecimal getPayMoney() {
        return payMoney;
    }
 
    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }
 
    public BigDecimal getPreMoney() {
        return preMoney;
    }
 
    public void setPreMoney(BigDecimal preMoney) {
        this.preMoney = preMoney;
    }
 
    public BigDecimal getFinalMoney() {
        return finalMoney;
    }
 
    public void setFinalMoney(BigDecimal finalMoney) {
        this.finalMoney = finalMoney;
    }
 
    public Date getBalanceTime() {
        return balanceTime;
    }
 
    public void setBalanceTime(Date balanceTime) {
        this.balanceTime = balanceTime;
    }
 
    public String getOrderId() {
        return orderId;
    }
 
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
 
    public String getTypeName() {
        return typeName;
    }
 
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
 
    public String getSrcMediaId() {
        return srcMediaId;
    }
 
    public void setSrcMediaId(String srcMediaId) {
        this.srcMediaId = srcMediaId;
    }
 
    public String getAdzoneId() {
        return adzoneId;
    }
 
    public void setAdzoneId(String adzoneId) {
        this.adzoneId = adzoneId;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Boolean getAccountBalance() {
        return accountBalance;
    }
 
    public void setAccountBalance(Boolean accountBalance) {
        this.accountBalance = accountBalance;
    }
 
}