using Dlhis.Entity.Basic.Enums; using Kurisu.SqlSugar; using SqlSugar; using SqlSugar.DbConvert; namespace Dlhis.Entity.Canteen.Entities; /// /// 餐补记录 /// [SugarTable(TableName = "MealSupplementRecord", TableDescription = "餐补记录")] public class MealSupplementRecordEntity : MealSupplementRequestRecordEntity { /// /// 唯一号(流水号) /// [SugarColumn(IsNullable = false, ColumnDescription = "唯一号", UniqueGroupNameList = new[] { "idx_MealSupplementRecord_UniqueId" })] public override string UniqueId { get; set; } /// /// 工号 /// [SugarColumn(IsNullable = false, ColumnDescription = "工号", IndexGroupNameList = new[] { "idx_MealSupplementRecord_Code" })] public override string Code { get; set; } /// /// 餐补状态 /// [SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public MealSupplementStatusEnumtype Status { get; set; } /// /// 处理结果 /// [SugarColumn(ColumnDescription = "处理结果", ColumnDataType = "varchar(2000)")] public string Result { get; set; } /// /// 状态同步 /// public bool Sync { get; set; } } /// /// 餐补请求记录 /// [SugarTable(TableName = "MealSupplementRequestRecord", TableDescription = "餐补请求记录")] public class MealSupplementRequestRecordEntity : SugarBaseEntity { public virtual string UniqueId { get; set; } public virtual string Code { get; set; } /// /// 考勤日期 /// [SugarColumn(ColumnDataType = "date", IsNullable = false, ColumnDescription = "考勤日期")] public DateTime Date { get; set; } /// /// 工作地 /// [SugarColumn(IsNullable = false, ColumnDescription = "工作地")] public string Workplace { get; set; } /// /// 厂区 /// [SugarColumn(IsNullable = false, ColumnDescription = "厂区")] public string Factory { get; set; } public string Remark { get; set; } /// /// 餐补 /// [SugarColumn(IsNullable = false, ColumnDescription = "餐补")] public decimal Amount { get; set; } }