From 25b2d7d1efaef83162bb4eef4f09c7d35d35bef7 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 25 Feb 2025 11:42:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A1=A8=E5=AD=97=E6=AE=B5=E7=89=B9?= =?UTF-8?q?=E6=80=A7=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Entity/Basic/Entity/WorkGridScheduleEntity.cs | 4 ++-- Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs | 4 ++++ Src/Dlhis.Entity/Basic/Entity/WorkGridUserEntity.cs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Src/Dlhis.Entity/Basic/Entity/WorkGridScheduleEntity.cs b/Src/Dlhis.Entity/Basic/Entity/WorkGridScheduleEntity.cs index 22e58f7d..21ff88d1 100644 --- a/Src/Dlhis.Entity/Basic/Entity/WorkGridScheduleEntity.cs +++ b/Src/Dlhis.Entity/Basic/Entity/WorkGridScheduleEntity.cs @@ -21,13 +21,13 @@ public class WorkGridScheduleEntity : SugarBaseEntity, ITenantId /// /// 排班日期 /// - [SugarColumn(IsNullable = false, ColumnDescription = "排班日期")] + [SugarColumn(IsNullable = false, ColumnDataType = "date", ColumnDescription = "排班日期")] public DateOnly Date { get; set; } /// /// 排班类型 /// - [SugarColumn(IsNullable = false, ColumnDescription = "排班类型", SqlParameterDbType = typeof(EnumToStringConvert))] + [SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", ColumnDescription = "排班类型", SqlParameterDbType = typeof(EnumToStringConvert))] public WorkGridTimePeriodEnumType PeriodType { get; set; } /// diff --git a/Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs b/Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs index 1d842130..721823da 100644 --- a/Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs +++ b/Src/Dlhis.Entity/Basic/Entity/WorkGridTimePeriodEntity.cs @@ -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 /// 班次 /// [AdaptIgnore(MemberSide.Destination)] + [SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))] public WorkGridTimePeriodEnumType Type { get; set; } /// @@ -31,11 +33,13 @@ public class WorkGridTimePeriodEntity : SugarBaseEntity, ITenantId /// /// 开始时间 /// + [SugarColumn(IsNullable = false, ColumnDataType = "date")] public TimeOnly Start { get; set; } /// /// 结束时间 /// + [SugarColumn(IsNullable = false, ColumnDataType = "date")] public TimeOnly End { get; set; } diff --git a/Src/Dlhis.Entity/Basic/Entity/WorkGridUserEntity.cs b/Src/Dlhis.Entity/Basic/Entity/WorkGridUserEntity.cs index 7685a578..05ccd503 100644 --- a/Src/Dlhis.Entity/Basic/Entity/WorkGridUserEntity.cs +++ b/Src/Dlhis.Entity/Basic/Entity/WorkGridUserEntity.cs @@ -27,7 +27,7 @@ public class WorkGridUserEntity : SugarBaseEntity, ITenantId /// /// 排班类型 /// - [SugarColumn(IsNullable = true, ColumnDescription = "排班类型", SqlParameterDbType = typeof(EnumToStringConvert))] + [SugarColumn(IsNullable = true,ColumnDataType = "varchar(50)",ColumnDescription = "排班类型", SqlParameterDbType = typeof(EnumToStringConvert))] public WorkGridTimePeriodEnumType? ScheduleType { get; set; } ///