feat 工作网格

This commit is contained in:
2025-02-18 16:10:38 +08:00
parent 66df7b809b
commit c9df417799
26 changed files with 1070 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
using Dlhis.Entity.Basic.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Basic.Entity;
/// <summary>
///
/// </summary>
[SugarTable(TableName = "WorkGridSchedule")]
public class WorkGridScheduleEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 网格code
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "网格code")]
public Guid WorkGridCode { get; set; }
/// <summary>
/// 排班日期
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "排班日期")]
public DateOnly Date { get; set; }
/// <summary>
/// 排班类型
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "排班类型", SqlParameterDbType = typeof(EnumToStringConvert))]
public WorkGridTimePeriodEnumType PeriodType { get; set; }
/// <summary>
/// 工号
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "工号")]
public string UserCode { get; set; }
/// <inheritdoc />
public string TenantId { get; set; }
}