zhaolei
4 days ago 2ac28b26908781373730e2ba9611ccd244805304
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
using Bootstrap.Security.DataAccess;
using PetaPoco;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
 
namespace Bootstrap.DataAccess.Xnjk.DataModel.Domain
{
    [TableName("xn_order")]
    [PrimaryKey("order_id", AutoIncrement=false)]
    [ExplicitColumns]
    public partial class Order 
    {
 
        /// <summary>
        /// Order_Id
        /// </summary>
        [Column("order_id")]
        public Guid OrderId { get; set; } = Guid.NewGuid();
 
        /// <summary>
        /// TmpOrder_Id
        /// </summary>
        [Column("tmporder_id")]
        public Guid TmporderId { get; set; }
 
        /// <summary>
        /// 订单编号
        /// </summary>
        [Column("order_identifier")]
        public string OrderIdentifier { get; set; }
 
        /// <summary>
        /// 客户ID
        /// </summary>
        [Column("cus_id")]
        public Guid? CusId { get; set; }
 
        /// <summary>
        /// 城市ID
        /// </summary>
        [Column("city_id")]
        public Guid? CityId { get; set; }
 
        /// <summary>
        /// 业务类型 1.港口达 装  2 港口达 卸
        /// </summary>
        [Column("order_type")]
        public int? OrderType { get; set; }
 
        /// <summary>
        /// 是否使用优惠卷 0 未 1使用
        /// </summary>
        [Column("order_use_coupon")]
        public bool? OrderUseCoupon { get; set; }
 
        /// <summary>
        /// 优惠卷面值
        /// </summary>
        [Column("order_coupon_money")]
        public decimal? OrderCouponMoney { get; set; }
 
        /// <summary>
        /// 订单开始配送时间
        /// </summary>
        [Column("order_begin_time")]
        public DateTime? OrderBeginTime { get; set; }
 
        /// <summary>
        /// 订单最后开始配送时间
        /// </summary>
        [Column("order_end_time")]
        public DateTime? OrderEndTime { get; set; }
 
        /// <summary>
        /// 箱子总数(TEU)
        /// </summary>
        [Column("order_total_ctner_nub")]
        public int? OrderTotalCtnerNub { get; set; }
 
        /// <summary>
        /// 特殊费用总额
        /// </summary>
        [Column("order_total_special_money")]
        public decimal? OrderTotalSpecialMoney { get; set; }
 
        /// <summary>
        /// 总基础运输费用
        /// </summary>
        [Column("order_total_base_money")]
        public decimal? OrderTotalBaseMoney { get; set; }
 
        /// <summary>
        /// 总费用
        /// </summary>
        [Column("order_total_money")]
        public decimal? OrderTotalMoney { get; set; }
 
        /// <summary>
        /// 应付费用
        /// </summary>
        [Column("order_amount_due")]
        public decimal? OrderAmountDue { get; set; }
 
        /// <summary>
        /// 退回总金额
        /// </summary>
        [Column("order_return_money")]
        public decimal? OrderReturnMoney { get; set; }
 
        /// <summary>
        /// 实付金额
        /// </summary>
        [Column("order_pay_amount")]
        public decimal? OrderPayAmount { get; set; }
 
        /// <summary>
        /// 客户冻结金额
        /// </summary>
        [Column("order_frozen_amount")]
        public decimal? OrderFrozenAmount { get; set; }
 
        /// <summary>
        /// 0 预支,1线上支付
        /// </summary>
        [Column("order_pay_mode")]
        public int? OrderPayMode { get; set; }
 
        /// <summary>
        /// 0 小牛币 1支付宝 2微信
        /// </summary>
        [Column("order_pay_type")]
        public int? OrderPayType { get; set; }
 
        /// <summary>
        /// 0 未支付  1已支付
        /// </summary>
        [Column("order_pay_state")]
        public bool? OrderPayState { get; set; }
 
        /// <summary>
        /// 支付表支付号
        /// </summary>
        [Column("order_pay_identifier")]
        public Guid? OrderPayIdentifier { get; set; }
 
        /// <summary>
        /// 0未 1返还,线上支付返还
        /// </summary>
        [Column("order_refund_state")]
        public bool? OrderRefundState { get; set; }
 
        /// <summary>
        /// 处理状态 0新 1接单 2拒绝
        /// </summary>
        [Column("order_handle_state")]
        public int? OrderHandleState { get; set; }
 
        /// <summary>
        /// 处理人
        /// </summary>
        [Column("order_handle_user")]
        public Guid? OrderHandleUser { get; set; }
 
        /// <summary>
        /// 处理时间
        /// </summary>
        [Column("order_handle_time")]
        public DateTime? OrderHandleTime { get; set; }
 
        /// <summary>
        /// 0 未调度  1调度中  2 调度完成
        /// </summary>
        [Column("order_dispatch_state")]
        public bool? OrderDispatchState { get; set; }
 
        /// <summary>
        /// 调度用户
        /// </summary>
        [Column("order_dispatch_user")]
        public Guid? OrderDispatchUser { get; set; }
 
        /// <summary>
        /// 调度时间
        /// </summary>
        [Column("order_dispatch_time")]
        public DateTime? OrderDispatchTime { get; set; }
 
        /// <summary>
        /// 0 未异常  1 异常
        /// </summary>
        [Column("order_abnormal_state")]
        public bool? OrderAbnormalState { get; set; }
 
        /// <summary>
        /// 异常申请时间
        /// </summary>
        [Column("order_abnormal_apply_time")]
        public DateTime? OrderAbnormalApplyTime { get; set; }
 
        /// <summary>
        /// 异常处理人
        /// </summary>
        [Column("order_abnormal_user")]
        public Guid? OrderAbnormalUser { get; set; }
 
        /// <summary>
        /// 异常处理时间
        /// </summary>
        [Column("order_abnormal_time")]
        public DateTime? OrderAbnormalTime { get; set; }
 
        /// <summary>
        /// 0 新  1 运行中  2完成  3取消
        /// </summary>
        [Column("order_state")]
        public int? OrderState { get; set; }
 
        /// <summary>
        /// 退回原因
        /// </summary>
        [Column("order_return_reason")]
        public string OrderReturnReason { get; set; }
 
        /// <summary>
        /// 退回状态 0,新 1审核通过,2未通过
        /// </summary>
        [Column("order_return_state")]
        public int? OrderReturnState { get; set; }
 
        /// <summary>
        /// 退回审核人
        /// </summary>
        [Column("order_return_examine_user")]
        public Guid? OrderReturnExamineUser { get; set; }
 
        /// <summary>
        /// 退回审核时间
        /// </summary>
        [Column("order_return_examine_time")]
        public DateTime? OrderReturnExamineTime { get; set; }
 
        /// <summary>
        /// 是否返回客户 0未返回  1已返回
        /// </summary>
        [Column("order_is_return_cus")]
        public bool? OrderIsReturnCus { get; set; }
 
        /// <summary>
        /// 退回时间
        /// </summary>
        [Column("order_return_time")]
        public DateTime? OrderReturnTime { get; set; }
 
        /// <summary>
        /// 下单时间
        /// </summary>
        [Column("order_addtime")]
        public DateTime? OrderAddtime { get; set; }
    }
}