50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using Dlhis.Entity.Basic.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Basic.Entity;
|
|
|
|
/// <summary>
|
|
/// 工作网格
|
|
/// </summary>
|
|
[SugarTable(TableName = "WorkGridTimePeriods")]
|
|
public class WorkGridTimePeriodEntity : SugarBaseEntity, ITenantId , ISoftDeleted
|
|
{
|
|
/// <summary>
|
|
/// 班次
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public WorkGridTimePeriodEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 前
|
|
/// </summary>
|
|
public int Before { get; set; }
|
|
|
|
/// <summary>
|
|
/// 后
|
|
/// </summary>
|
|
public int After { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开始时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "time")]
|
|
public TimeOnly Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "time")]
|
|
public TimeOnly End { get; set; }
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
|
|
/// <inheritdoc />
|
|
public bool IsDeleted { get; set; }
|
|
} |