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
package com.yeshi.fanli.entity.dy;
 
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
 
import java.util.Date;
 
/**
 * @author hxh
 * @title: DYOrder
 * @description: 抖音订单
 * @date 2022/9/30 16:00
 */
@Document(collection = "dy_order")
public class DYOrder {
    //支付成功
    public final static String FLOW_POINT_PAY_SUCCESS = "PAY_SUCC";
    //退款
    public final static String FLOW_POINT_REFUND = "REFUND";
    //结算。此状态代表商家确定会结算佣⾦
    public final static String FLOW_POINT_SETTLE = "SETTLE";
    //确认收货
    public final static String FLOW_POINT_CONFIRM = "CONFIRM";
 
 
    //正常状态
    public final static int AFTER_SALE_STATUS_NORMAL = 0;
    //退款
    public final static int AFTER_SALE_STATUS_REFUND = 2;
 
 
    /**
     * order_id : 4984002890650177191
     * app_id : 5171164
     * product_id : 3549871967593209780
     * product_name : 心相印抽纸茶语丝享3层100抽5包家用纸巾面巾纸餐巾纸卫生纸
     * product_img : https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_uudYARcp_71167039980691622430814_a91754ba6c808f9cc7e6a553a8bc3268_sx_306764_www800-800
     * total_pay_amount : 970
     * pay_success_time : 2022-09-30 15:47:40
     * refund_time :
     * pay_goods_amount : 990
     * estimated_commission : 0
     * split_rate : 0
     * after_sales_status : 1
     * flow_point : PAY_SUCC
     * external_info : 12313
     * settle_time :
     * confirm_time :
     * estimated_tech_service_fee : 0
     */
    /**
     * 订单id
     **/
    @Id
    private String id;
 
 
    private String order_id;
    /**
     * 应⽤id
     **/
    private String app_id;
    /**
     * 商品id
     **/
    private String product_id;
    /**
     * 商品名称
     **/
    private String product_name;
    /**
     * 商品封面
     **/
    private String product_img;
    /**
     * 总付款⾦额,单位分
     **/
    private Integer total_pay_amount;
    /**
     * ⽀付成功时间 yyyy-MM-dd HH:mm:ss
     **/
    private String pay_success_time;
    /**
     * 退款时间 yyyy-MM-dd HH:mm:ss
     **/
    private String refund_time;
    /**
     * 预估结算⾦额,单位分。如果有⽀付优惠,
     * pay_goods_amount会略⼤于total_pay_amount
     **/
    private Integer pay_goods_amount;
    /**
     * 预估佣⾦收⼊,单位分
     **/
    private Integer estimated_commission;
    /**
     * 推⼴费率,10代表推⼴费率为0.10
     **/
    private Integer split_rate;
    /**
     * 售后状态,1-空,2-产⽣退款
     **/
    private Integer after_sales_status;
    /**
     * PAY_SUCC:⽀付完成
     * REFUND:退款
     * SETTLE:结算。此状态代表商家确定会结算佣⾦
     * CONFIRM: 确认收货
     **/
    private String flow_point;
    /**
     * 开发者在转链时⾃⼰上传的external_inf
     **/
    private String external_info;
    /**
     * 结算时间
     **/
    private String settle_time;
    /**
     * 确认收货时间
     **/
    private String confirm_time;
    /**
     * 预估技术服务费,为pay_goods_amount*0.1。此字段
     * 当前不准,仅供参考。
     **/
    private Integer estimated_tech_service_fee;
 
    private Date createTime;
    private Date updateTime;
 
    public String getOrder_id() {
        return order_id;
    }
 
    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }
 
    public String getApp_id() {
        return app_id;
    }
 
    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }
 
    public String getProduct_id() {
        return product_id;
    }
 
    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }
 
    public String getProduct_name() {
        return product_name;
    }
 
    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }
 
    public String getProduct_img() {
        return product_img;
    }
 
    public void setProduct_img(String product_img) {
        this.product_img = product_img;
    }
 
    public Integer getTotal_pay_amount() {
        return total_pay_amount;
    }
 
    public void setTotal_pay_amount(Integer total_pay_amount) {
        this.total_pay_amount = total_pay_amount;
    }
 
    public String getPay_success_time() {
        return pay_success_time;
    }
 
    public void setPay_success_time(String pay_success_time) {
        this.pay_success_time = pay_success_time;
    }
 
    public String getRefund_time() {
        return refund_time;
    }
 
    public void setRefund_time(String refund_time) {
        this.refund_time = refund_time;
    }
 
    public Integer getPay_goods_amount() {
        return pay_goods_amount;
    }
 
    public void setPay_goods_amount(Integer pay_goods_amount) {
        this.pay_goods_amount = pay_goods_amount;
    }
 
    public Integer getEstimated_commission() {
        return estimated_commission;
    }
 
    public void setEstimated_commission(Integer estimated_commission) {
        this.estimated_commission = estimated_commission;
    }
 
    public Integer getSplit_rate() {
        return split_rate;
    }
 
    public void setSplit_rate(Integer split_rate) {
        this.split_rate = split_rate;
    }
 
    public Integer getAfter_sales_status() {
        return after_sales_status;
    }
 
    public void setAfter_sales_status(Integer after_sales_status) {
        this.after_sales_status = after_sales_status;
    }
 
    public String getFlow_point() {
        return flow_point;
    }
 
    public void setFlow_point(String flow_point) {
        this.flow_point = flow_point;
    }
 
    public String getExternal_info() {
        return external_info;
    }
 
    public void setExternal_info(String external_info) {
        this.external_info = external_info;
    }
 
    public String getSettle_time() {
        return settle_time;
    }
 
    public void setSettle_time(String settle_time) {
        this.settle_time = settle_time;
    }
 
    public String getConfirm_time() {
        return confirm_time;
    }
 
    public void setConfirm_time(String confirm_time) {
        this.confirm_time = confirm_time;
    }
 
    public Integer getEstimated_tech_service_fee() {
        return estimated_tech_service_fee;
    }
 
    public void setEstimated_tech_service_fee(Integer estimated_tech_service_fee) {
        this.estimated_tech_service_fee = estimated_tech_service_fee;
    }
 
    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 getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String toId() {
        return order_id + "-" + product_id;
    }
}