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
package com.yeshi.fanli.dto.order;
 
import java.math.BigDecimal;
 
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.bus.user.Order;
import com.yeshi.fanli.entity.bus.user.UserInfo;
 
public class OrderItem {
    // -1:退款 1已支付 2结算 3已到账 4售后
    public final static int STATE_TUIKUAN = -1;
    public final static int STATE_YIZHIFU = 1;
    public final static int STATE_JIESUAN = 2;
    public final static int STATE_DAOZHANG = 3;
    public final static int STATE_SHOUHOU = 4;
 
    private Long id;
 
    public OrderItem(Long id) {
        this.id = id;
    }
 
    @Expose
    private String picture;// 图片
 
    @Expose
    private String auctionId;// 商品ID
 
    @Expose
    private String title;// 商品名称
 
    @Expose
    private String orderId;// 订单号
 
    private Integer type;// 订单类型
 
    @Expose
    private Integer state; // -1:退款 1已支付 2结算 3已到账 4售后
 
    @Expose
    private BigDecimal payMoney;// 付款金额
 
    @Expose
    private BigDecimal fanMoney;// 返利金额
 
    @Expose
    private Long createTime;
 
    private Long settlementTime;// 结算时间
 
    private Long refundTime;// 退款时间
 
    private Long fanTime;// 返利时间
 
    private Boolean isGift;// 是否有分销提成 true:有
 
    @Expose
    private String desc;
 
    private UserInfo userInfo;
 
    private Order order;
 
    private Integer version;// 版本1.2.3之前为1 后为2
 
    private BigDecimal prePayMoney;
 
    @Expose
    private String stateDesc;// 状态简介
 
    public String getStateDesc() {
        return stateDesc;
    }
 
    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }
 
    public BigDecimal getPrePayMoney() {
        return prePayMoney;
    }
 
    public void setPrePayMoney(BigDecimal prePayMoney) {
        this.prePayMoney = prePayMoney;
    }
 
    public OrderItem() {
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Boolean getIsGift() {
        return isGift;
    }
 
    public void setIsGift(Boolean isGift) {
        this.isGift = isGift;
    }
 
    public String getPicture() {
        return picture;
    }
 
    public void setPicture(String picture) {
        this.picture = picture;
    }
 
    public Integer getVersion() {
        return version;
    }
 
    public void setVersion(Integer version) {
        this.version = version;
    }
 
    public void setDesc(String desc) {
        this.desc = desc;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getOrderId() {
        return orderId;
    }
 
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
 
    public Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    public BigDecimal getPayMoney() {
        return payMoney;
    }
 
    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }
 
    public BigDecimal getFanMoney() {
        return fanMoney;
    }
 
    public void setFanMoney(BigDecimal fanMoney) {
        this.fanMoney = fanMoney;
    }
 
    public Long getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
 
    public UserInfo getUserInfo() {
        return userInfo;
    }
 
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
 
    public Order getOrder() {
        return order;
    }
 
    public void setOrder(Order order) {
        this.order = order;
    }
 
    public String getAuctionId() {
        return auctionId;
    }
 
    public void setAuctionId(String auctionId) {
        this.auctionId = auctionId;
    }
 
    public Long getSettlementTime() {
        return settlementTime;
    }
 
    public void setSettlementTime(Long settlementTime) {
        this.settlementTime = settlementTime;
    }
 
    public Long getFanTime() {
        return fanTime;
    }
 
    public void setFanTime(Long fanTime) {
        this.fanTime = fanTime;
    }
 
    public Long getRefundTime() {
        return refundTime;
    }
 
    public void setRefundTime(Long refundTime) {
        this.refundTime = refundTime;
    }
 
    public String getDesc() {
        return desc;
    }
 
    public void setDesc() {
        if (state == -1) {
            this.desc = "退款订单不返利";
            this.stateDesc = "已退款";
        } else if (state == 1) {
            this.desc = "确认收货15天后即可到账";
            this.stateDesc = "未到账";
        } else if (state == 2) {
            this.desc = "确认收货15天后即可到账";
            this.stateDesc = "未到账";
        } else if (state == 3) {
            this.desc = "已自动转入你的余额";
            this.stateDesc = "已到账";
        } else if (state == 4) {
            this.desc = "售后订单无返利";
            this.stateDesc = "已售后";
        }
    }
 
}