using Dlhis.Entity.Canteen.Enums; using Kurisu.Core.DataAccess.Entity; using Kurisu.SqlSugar; using SqlSugar; using SqlSugar.DbConvert; namespace Dlhis.Entity.Canteen.Entities { /// /// 小程序订单表 /// [SugarTable(TableName = "MiniProgramOrder", TableDescription = "小程序订单表")] public class MiniProgramOrderEntity : SugarBaseEntity, ITenantId { /// /// 订单号 /// [SugarColumn(ColumnDescription = "订单号")] public string No { get; set; } /// /// 姓名 /// [SugarColumn(ColumnDescription = "姓名")] public string Name { get; set; } /// /// 工号 /// [SugarColumn(ColumnDescription = "工号")] public string Code { get; set; } /// /// 人事范围 /// [SugarColumn(ColumnDescription = "人事范围")] public string Werks { get; set; } /// /// 部门编码 /// [SugarColumn(ColumnDescription = "部门编码")] public string DepartmentNo { get; set; } /// /// 成本中心 /// [SugarColumn(ColumnDescription = "成本中心")] public string CostId { get; set; } /// /// 工作地 /// [SugarColumn(ColumnDescription = "工作地")] public string Workplace { get; set; } /// /// 厂区 /// [SugarColumn(ColumnDescription = "厂区")] public string Factory { get; set; } /// /// 营业点 /// [SugarColumn(ColumnDescription = "营业点")] public Guid PlaceCode { get; set; } /// /// 餐次 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "餐次")] public ShiftEnumType ShiftType { get; set; } /// /// 菜品 /// [SugarColumn(ColumnDescription = "菜品")] public Guid DishesCode { get; set; } /// /// 手机号码 /// [SugarColumn(ColumnDescription = "手机号码")] public string Phone { get; set; } /// /// 用餐日期 /// [SugarColumn(ColumnDescription = "用餐日期")] public DateOnly SysDate { get; set; } /// /// 下单时间 /// [SugarColumn(ColumnDescription = "下单时间")] public DateTime CostDate { get; set; } /// /// 支付方式 /// [SugarColumn(ColumnDescription = "支付方式", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public CanteenPayEnumType PayType { get; set; } /// /// 订单状态 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "订单状态")] public MiniProgramOrderStatusEnumType OrderStatus { get; set; } /// /// 订单类型 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "订单类型")] public CanteenDishesEnumType OrderType { get; set; } /// /// 总金额 /// [SugarColumn(ColumnDescription = "总金额")] public decimal TotalAmount { get; set; } public string TenantId { get; set; } } }