OrderDetailDb.java
3.36 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
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.JsonValue;
import com.fasterxml.jackson.databind.JsonNode;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;
/**
* order detail DB
* @TableName client_customer_order_details
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value ="client_customer_order_details")
public class OrderDetailDb extends Model<OrderDetailDb> implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 订单号
*/
private Integer orderId;
private Integer enterpriseId;
/**
* 餐单详情id
*/
private Integer menuDetailId;
/**
* 菜品所点份数
*/
private Integer count;
/**
* 菜品所属餐别ID
*/
private Integer mealId;
/**
* 菜品所属品类ID
*/
private Integer categoryId;
/**
* 菜品ID
*/
private Integer skuId;
/**
* 菜品展示名称
*/
private String showName;
/**
* 菜品价格, 单位为分
*/
private Integer price;
/**
* 详情json, 菜品主料、口味、能量、脂肪、蛋白质、碳水化合物、忌口、医嘱等
* {
* "basicMaterials": String, //主料
* "tastes": [], //口味
* "efficacies": [], //功效
* "dockers": [], //医嘱
* "energy": String, //能量
* "fat": String, //脂肪
* "protein": String, //蛋白质
* "carbohydrate": String, //碳水化合物
* "allergies": [] //过敏源
* }
*/
@TableField(jdbcType = JdbcType.OTHER)
private JsonNode mealDetailJson;
/**
* 是否删除;0:未删除,1:已删除
*/
@TableLogic
private Boolean isDeleted;
/**
* 创建人 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;
/**
* 不出餐: 默认出餐=0; 不出餐=1
*/
private Boolean notServe;
/**
* 调整配料备注
*/
private String adjustSkuRemark;
}