feat 节假日
This commit is contained in:
43
Src/Dlhis.Entity/Basic/Entity/HolidayEntity.cs
Normal file
43
Src/Dlhis.Entity/Basic/Entity/HolidayEntity.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 节假日
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "Holidays")]
|
||||
public class HolidayEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 年份
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "年份")]
|
||||
public int Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节假日类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "节假日类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public HolidayEnumType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "开始日期")]
|
||||
public DateOnly Start { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "结束日期")]
|
||||
public DateOnly End { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 人员考勤数据分析
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "UserAttendanceDataAnalysis")]
|
||||
public class UserAttendanceDataAnalysisEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "工号")]
|
||||
public string UserCode { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user