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