From 09165983cc5e839df9ca8ee3c991e837b1d65c69 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 27 Feb 2024 18:42:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=BB=A7=E6=89=BFbaseEntity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/Entities/DeviceUploadLogEntity.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs b/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs index 6381a33e..39904219 100644 --- a/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs +++ b/Src/Dlhis.Entity/Device/Entities/DeviceUploadLogEntity.cs @@ -1,26 +1,21 @@ using Dlhis.Entity.Device.Enums; using Kurisu.Core.DataAccess.Entity; +using Kurisu.SqlSugar; using SqlSugar; using SqlSugar.DbConvert; namespace Dlhis.Entity.Device.Entities; [SugarTable(TableName = "DeviceUploadLog", TableDescription = "设备上传记录")] -public class DeviceUploadLogEntity : ITenantId +public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId { - /// - /// id - /// - [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] - public long Id { get; set; } - - [SugarColumn(IsNullable = true)] public string SerialNo { get; set; } /// /// 设备号 /// + [SugarColumn(IsNullable = false)] public string DeviceUniqueNo { get; set; } /// @@ -32,9 +27,9 @@ public class DeviceUploadLogEntity : ITenantId /// /// 产生时间 /// + [SugarColumn(IsNullable = false)] public DateTime RaiseDateTime { get; set; } - /// /// 日志类型 ///