Files

64 lines
1.8 KiB
C#

using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
namespace Dlhis.Entity.Basic.Entity;
[SugarTable(TableName = "Werk", TableDescription = "人事范围")]
public class WerkEntity : SugarBaseEntity
{
/// <summary>
/// 人事范围
/// </summary>
[AdaptIgnore(MemberSide.Destination)]
[SugarColumn(UniqueGroupNameList = new[] { "idx_Werk_Werk" })]
public string Werk { get; set; }
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnDescription = "名称")]
public string Name { get; set; }
/// <summary>
/// 后台任务key
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "后台任务key")]
public string BackgroundJobKey { get; set; }
/// <summary>
/// 获取总人数
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "获取总人数")]
public int Total { get; set; }
/// <summary>
/// 差异数
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "差异数")]
public int DiffNumber { get; set; }
/// <summary>
/// 最近同步时间
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "最近同步时间")]
public DateTime? LastSyncStartTime { get; set; }
/// <summary>
/// 最近同步时间
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "最近同步时间")]
public DateTime? LastSyncEndTime { get; set; }
/// <summary>
/// 结果
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "结果")]
public string HandleMessage { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "bit", DefaultValue = "1")]
public bool Enable { get; set; }
}