feat 工作网格
This commit is contained in:
44
Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs
Normal file
44
Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user