fix 实体变更
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
using Kurisu.SqlSugar;
|
||||||
|
using SqlSugar;
|
||||||
|
|
||||||
|
namespace Dlhis.Entity.Basic.Entity;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 营业点管理
|
||||||
|
/// </summary>
|
||||||
|
[SugarTable(TableName = "BusinessPlaceManagerRelationship", TableDescription = "营业点管理关系")]
|
||||||
|
public class BusinessPlaceManagerRelationshipEntity : SugarBaseEntity
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 管理人员
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnDescription = "管理人员", IsNullable = false)]
|
||||||
|
public int ManagerUserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 营业点
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnDescription = "营业点", IsNullable = false)]
|
||||||
|
public Guid BusinessPlaceCode { get; set; }
|
||||||
|
}
|
||||||
@@ -6,9 +6,9 @@ using SqlSugar;
|
|||||||
namespace Dlhis.Entity.Basic.Entity;
|
namespace Dlhis.Entity.Basic.Entity;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 营业点餐次
|
/// 营业点餐别
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable(TableName = "BusinessShift", TableDescription = "营业点餐次")]
|
[SugarTable(TableName = "BusinessShift", TableDescription = "营业点餐别")]
|
||||||
public class BusinessShiftEntity : SugarBaseEntity, ITenantId
|
public class BusinessShiftEntity : SugarBaseEntity, ITenantId
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -25,9 +25,9 @@ public class BusinessShiftEntity : SugarBaseEntity, ITenantId
|
|||||||
public string CustomCode { get; set; }
|
public string CustomCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 餐次名称
|
/// 餐别名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnDescription = "餐次名称")]
|
[SugarColumn(ColumnDescription = "餐别名称")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public string TenantId { get; set; }
|
public string TenantId { get; set; }
|
||||||
|
|||||||
35
Src/Dlhis.Entity/Canteen/Entities/DishesCategoryEntity.cs
Normal file
35
Src/Dlhis.Entity/Canteen/Entities/DishesCategoryEntity.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using Kurisu.Core.DataAccess.Entity;
|
||||||
|
using Kurisu.SqlSugar;
|
||||||
|
using SqlSugar;
|
||||||
|
|
||||||
|
namespace Dlhis.Entity.Canteen.Entities;
|
||||||
|
|
||||||
|
[SugarTable(TableName = "DishesCategory", TableDescription = "菜品分类")]
|
||||||
|
public class DishesCategoryEntity : SugarBaseEntity, ITenantId
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// PCode
|
||||||
|
/// </summary>
|
||||||
|
public Guid? PCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Code
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsNullable = false)]
|
||||||
|
public Guid Code { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 分类名称
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsNullable = false, ColumnDescription = "名称")]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 序号
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsNullable = false, ColumnDescription = "序号", DefaultValue = "100")]
|
||||||
|
public int Sequence { get; set; } = 100;
|
||||||
|
|
||||||
|
|
||||||
|
public string TenantId { get; set; }
|
||||||
|
}
|
||||||
@@ -8,20 +8,14 @@ namespace Dlhis.Entity.Canteen.Entities;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 菜品表
|
/// 菜品表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable(TableName = "CanteenDishes", TableDescription = "菜品表")]
|
[SugarTable(TableName = "Dishes", TableDescription = "菜品表")]
|
||||||
public class CanteenDishesEntity : SugarBaseEntity, ITenantId
|
public class DishesEntity : SugarBaseEntity, ITenantId
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 大类
|
/// 分类
|
||||||
/// </summary>
|
|
||||||
[SugarColumn(ColumnDescription = "父类")]
|
|
||||||
public string PCategory { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 小类
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnDescription = "分类", IsNullable = false)]
|
[SugarColumn(ColumnDescription = "分类", IsNullable = false)]
|
||||||
public string Category { get; set; }
|
public Guid CategoryCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 营业点
|
/// 营业点
|
||||||
@@ -41,12 +35,6 @@ public class CanteenDishesEntity : SugarBaseEntity, ITenantId
|
|||||||
[SugarColumn(ColumnDescription = "菜品名称", IsNullable = false)]
|
[SugarColumn(ColumnDescription = "菜品名称", IsNullable = false)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 类型
|
|
||||||
///// </summary>
|
|
||||||
//[SugarColumn(ColumnDescription = "类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
||||||
//public CanteenDishesEnumType Type { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 描述
|
/// 描述
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1,41 +1,40 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace Dlhis.Entity.Canteen.Enums
|
namespace Dlhis.Entity.Canteen.Enums;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 餐次 ShiftEnumType
|
||||||
|
/// </summary>
|
||||||
|
[Description("餐次")]
|
||||||
|
public enum ShiftEnumType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 餐次
|
/// 早餐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("餐次")]
|
[Description("早餐")]
|
||||||
public enum ShiftEnumType
|
Breakfast = 1,
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 早餐
|
|
||||||
/// </summary>
|
|
||||||
[Description("早餐")]
|
|
||||||
Breakfast = 1,
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 午餐
|
/// 午餐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("午餐")]
|
[Description("午餐")]
|
||||||
Lunch = 2,
|
Lunch = 2,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 晚餐
|
/// 晚餐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("晚餐")]
|
[Description("晚餐")]
|
||||||
Dinner = 3,
|
Dinner = 3,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 宵夜
|
/// 宵夜
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("宵夜")]
|
[Description("宵夜")]
|
||||||
Nightsnack = 4,
|
Nightsnack = 4,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 凌晨餐
|
/// 凌晨餐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("凌晨餐")]
|
[Description("凌晨餐")]
|
||||||
Midnightsnack = 5,
|
Midnightsnack = 5,
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user