fix 表增加ITenantid
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
@@ -14,7 +15,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// 菜品表
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "CanteenDishes", TableDescription = "菜品表")]
|
||||
public class CanteenDishesEntity : SugarBaseEntity
|
||||
public class CanteenDishesEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -76,5 +77,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")]
|
||||
public bool Enable { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
@@ -8,7 +9,7 @@ namespace Dlhis.Entity.Canteen.Entities;
|
||||
/// 菜单表
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "CanteenMenu", TableDescription = "菜单表")]
|
||||
public class CanteenMenuEntity : SugarBaseEntity
|
||||
public class CanteenMenuEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -53,6 +54,7 @@ public class CanteenMenuEntity : SugarBaseEntity
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")]
|
||||
public bool Enable { get; set; }
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
@@ -9,7 +10,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// 小程序订单表
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "MiniProgramOrder", TableDescription = "小程序订单表")]
|
||||
public class MiniProgramOrderEntity : SugarBaseEntity
|
||||
public class MiniProgramOrderEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
@@ -118,5 +119,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "总金额")]
|
||||
public decimal TotalAmount { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
@@ -9,7 +10,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// 订餐明细表
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "OrderDetails", TableDescription = "订餐明细表")]
|
||||
public class OrderDetailsEntity : SugarBaseEntity
|
||||
public class OrderDetailsEntity : SugarBaseEntity, ITenantId
|
||||
{
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
@@ -70,5 +71,7 @@ namespace Dlhis.Entity.Canteen.Entities
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "订单明细状态")]
|
||||
public OrderDetailsStatusEnumType OrderStatus { get; set; }
|
||||
|
||||
public string TenantId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user