feat 工作网格

This commit is contained in:
2025-02-18 16:10:38 +08:00
parent 660dd7c049
commit 3cec230773
26 changed files with 1070 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
using Dlhis.Entity.Basic.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
/// 工作网格
/// </summary>
[SugarTable(TableName = "WorkGridTimePeriod")]
public class WorkGridTimePeriodEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 班次
/// </summary>
[AdaptIgnore(MemberSide.Destination)]
public WorkGridTimePeriodEnumType Type { get; set; }
/// <summary>
/// 前
/// </summary>
public int Before { get; set; }
/// <summary>
/// 后
/// </summary>
public int After { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public TimeOnly Start { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public TimeOnly End { get; set; }
[SugarColumn(UniqueGroupNameList = new[] { "idx_workGridTimePeriod_type_tenantId" })]
public string TenantId { get; set; }
}