OrderDb.java
4.03 KB
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
package com.tianting.infoloop.model.db;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* order DB
* @TableName client_customer_orders
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value ="client_customer_orders")
public class OrderDb extends Model<OrderDb> implements Serializable {
/**
* 订单id
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 订单号
*/
private String orderCode;
/**
* 企业 ID
*/
private Integer enterpriseId;
/**
* 院区 ID
*/
private Integer clientId;
/**
* 档口 ID
*/
private Integer stallId;
/**
* 阳光厅点餐客户 ID
*/
private String openId;
/**
* 客户 ID
*/
private Integer customerId;
/**
* 状态订单;待备餐=1,备餐中=2, 部分出餐=3, 已出餐=4, 已取消=5
*/
private Integer status;
/**
* 创建人 ID,这里有可能是在小程序端点餐的人,有可能是在院区端直接添加订单的,
*/
// @TableField(fill = FieldFill.INSERT)
private Integer createdBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdAt;
/**
* 创建来源:小程序端=1; 院区端=2; ADS端=3, 业务中台=4
*/
private Integer creationSource;
/**
* 修改人 ID, 修改人可能是院区端登陆的用户,也可能是KDS端登陆用户,这里需要确认下
*/
// @TableField(fill = FieldFill.INSERT_UPDATE)
private Integer updatedBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedAt;
/**
* 更新来源:小程序端=1; 院区端=2; ADS端=3, 业务中台=4
*/
private Integer updateSource;
/**
* 餐单id
*/
private Integer menuId;
/**
* 订单商品总数
*/
private Integer totalNum;
/**
* 实际支付金额, 单位为分
*/
private Integer payPrice;
/**
* 是否在线付费;0=未付费,1=付费
*/
private Boolean onlinePay;
/**
* 支付时间
*/
private LocalDateTime payTime;
/**
* 支付状态, 1=待支付,2=支付中,3=支付成功, 4=支付失败, 5=支付取消
*/
private Integer payStatus;
/**
* 支付失败原因
*/
private String errorMsg;
/**
* 支付平台响应id
*/
private String transactionId;
/**
* 用餐日期
*/
private LocalDateTime mealTime;
/**
* 订餐地址
*/
private String address;
/**
* 房间号
*/
private String roomNo;
/**
* 点餐桌码
*/
private String tableCode;
/**
* 取餐码
*/
private String pickupCode;
/**
* 订单类型 购买类型:1=堂食, 2=外送
*/
private Integer orderType;
/**
* 备注
*/
private String remark;
/**
* 忌口、医嘱
* {
* "avoids":["String"],
* "doctors":["String"]
* }
*/
private JsonNode customerNoticeJson;
/**
* 是否删除;0:未删除,1:已删除
*/
@TableLogic
private Boolean isDeleted;
private Boolean isRead;
/**
* 截单类型
*/
private Integer closeTimeType;
private Boolean isConfirm;
/**
* 是否调拨至厨房
*/
private Boolean isAllocation;
}