44 lines
1004 B
C#
44 lines
1004 B
C#
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; }
|
|
} |