fix 营业点餐次修改

This commit is contained in:
2024-02-23 12:12:30 +08:00
parent cbb26575ac
commit b272373584
24 changed files with 334 additions and 159 deletions

View File

@@ -9,8 +9,8 @@ namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 营业点
/// </summary>
[SugarTable(TableName = "CanteenBusinessPlace", TableDescription = "营业点")]
public class CanteenBusinessPlaceEntity : SugarBaseEntity, ITenantId
[SugarTable(TableName = "BusinessPlace", TableDescription = "营业点")]
public class BusinessPlaceEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 代号

View File

@@ -0,0 +1,18 @@
using Kurisu.Core.DataAccess.Entity;
using Kurisu.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
[SugarTable(TableName = "BusinessPlaceShiftRelationship", TableDescription = "营业点餐次关系")]
public class BusinessPlaceShiftRelationshipEntity : SugarBaseEntity, ITenantId
{
[SugarColumn(ColumnDescription = "营业点code")]
public Guid PlaceCode { get; set; }
[SugarColumn(ColumnDescription = "餐次code")]
public Guid ShiftCode { get; set; }
public string TenantId { get; set; }
}

View File

@@ -0,0 +1,32 @@
using Kurisu.Core.DataAccess.Entity;
using Kurisu.SqlSugar;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 营业点餐次
/// </summary>
[SugarTable(TableName = "BusinessShift", TableDescription = "营业点餐次")]
public class BusinessShiftEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 代号
/// </summary>
[SugarColumn(ColumnDescription = "code")]
public Guid Code { get; set; }
/// <summary>
/// 自定义代号
/// </summary>
[SugarColumn(ColumnDescription = "自定义手工号")]
public string CustomCode { get; set; }
/// <summary>
/// 餐次名称
/// </summary>
[SugarColumn(ColumnDescription = "餐次名称")]
public string Name { get; set; }
public string TenantId { get; set; }
}

View File

@@ -4,29 +4,26 @@ using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 营业点餐次
/// </summary>
[SugarTable(TableName = "CanteenBusinessShift", TableDescription = "营业点餐次")]
public class CanteenBusinessShiftEntity : SugarBaseEntity, ITenantId
[SugarTable(TableName = "BusinessShiftMealRelationship", TableDescription = "营业点餐次组合")]
public class BusinessShiftMealRelationshipEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 营业点代号
/// 餐次组合Code
/// </summary>
[SugarColumn(ColumnDescription = "营业点code")]
public Guid BusinessPlaceCode { get; set; }
[SugarColumn(ColumnDescription = "餐次组合Code", UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })]
public Guid ShiftCode { get; set; }
/// <summary>
/// 代号
/// 餐次组合手工号
/// </summary>
[SugarColumn(ColumnDescription = "code")]
public Guid Code { get; set; }
[SugarColumn(ColumnDescription = "餐次组合手工号")]
public string ShiftCustomCode { get; set; }
/// <summary>
/// 自定义代号
/// 餐次
/// </summary>
[SugarColumn(ColumnDescription = "自定义手工号")]
public string CustomCode { get; set; }
[SugarColumn(ColumnDescription = "餐次", UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })]
public string ShiftType { get; set; }
/// <summary>
/// 经营开始时间
@@ -46,5 +43,6 @@ public class CanteenBusinessShiftEntity : SugarBaseEntity, ITenantId
[SugarColumn(ColumnDescription = "序号")]
public int Sequence { get; set; }
public string TenantId { get; set; }
}
}

View File

@@ -64,7 +64,7 @@ public class BalanceRecordEntity : SugarBaseEntity, ITenantId
/// <summary>
/// 营业点
/// </summary>
[SugarColumn(ColumnDescription = "营业点" , IsNullable = true)]
[SugarColumn(ColumnDescription = "营业点", IsNullable = true)]
public Guid? BusinessPlaceCode { get; set; }
/// <summary>
@@ -73,6 +73,12 @@ public class BalanceRecordEntity : SugarBaseEntity, ITenantId
[SugarColumn(ColumnDescription = "餐次", IsNullable = true)]
public Guid? BusinessShiftCode { get; set; }
/// <summary>
/// 餐次段
/// </summary>
[SugarColumn(ColumnDescription = "餐次段", IsNullable = true)]
public string ShiftType { get; set; }
/// <summary>
/// 所属成本日期
/// </summary>