feat 菜单订单控制器
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Kurisu.SqlSugar;
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -54,8 +56,8 @@ public class CanteenMenuEntity : SugarBaseEntity
|
||||
/// <summary>
|
||||
/// 餐次段
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "餐次段", IsNullable = true)]
|
||||
public List<string> ShiftTypes { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(150)", IsJson = true, ColumnDescription = "餐次段", DefaultValue = "[]")]
|
||||
public List<ShiftEnumType> ShiftTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
|
||||
@@ -2,11 +2,6 @@
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities
|
||||
{
|
||||
@@ -49,6 +44,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// <summary>
|
||||
/// 成本中心
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "成本中心")]
|
||||
public string CostId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
41
Src/Dlhis.Entity/Canteen/Enums/ShiftEnumType.cs
Normal file
41
Src/Dlhis.Entity/Canteen/Enums/ShiftEnumType.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 餐次
|
||||
/// </summary>
|
||||
[Description("餐次")]
|
||||
public enum ShiftEnumType
|
||||
{
|
||||
/// <summary>
|
||||
/// 早餐
|
||||
/// </summary>
|
||||
[Description("早餐")]
|
||||
Breakfast = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 午餐
|
||||
/// </summary>
|
||||
[Description("午餐")]
|
||||
Lunch = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 晚餐
|
||||
/// </summary>
|
||||
[Description("晚餐")]
|
||||
Dinner = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 宵夜
|
||||
/// </summary>
|
||||
[Description("宵夜")]
|
||||
Nightsnack = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 凌晨餐
|
||||
/// </summary>
|
||||
[Description("凌晨餐")]
|
||||
Midnightsnack = 5,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user