fix 表字段特性处理

This commit is contained in:
2025-02-25 11:42:39 +08:00
parent 4c54d36e54
commit 25b2d7d1ef
3 changed files with 7 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Basic.Entity;
@@ -16,6 +17,7 @@ public class WorkGridTimePeriodEntity : SugarBaseEntity, ITenantId
/// 班次
/// </summary>
[AdaptIgnore(MemberSide.Destination)]
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public WorkGridTimePeriodEnumType Type { get; set; }
/// <summary>
@@ -31,11 +33,13 @@ public class WorkGridTimePeriodEntity : SugarBaseEntity, ITenantId
/// <summary>
/// 开始时间
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "date")]
public TimeOnly Start { get; set; }
/// <summary>
/// 结束时间
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "date")]
public TimeOnly End { get; set; }