From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 28 八月 2024 16:20:18 +0800 Subject: [PATCH] 更新设备信息表从表导入问题 --- WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Models/Dt_DeviceProtocolDetail.cs | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Models/Dt_DeviceProtocolDetail.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Models/Dt_DeviceProtocolDetail.cs index bd60d94..247be22 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Models/Dt_DeviceProtocolDetail.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Models/Dt_DeviceProtocolDetail.cs @@ -15,12 +15,14 @@ *----------------------------------------------------------------*/ #endregion << 鐗� 鏈� 娉� 閲� >> +using Magicodes.ExporterAndImporter.Core; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using WIDESEAWCS_Core.DB.Models; namespace WIDESEAWCS_QuartzJob.Models { @@ -28,47 +30,61 @@ /// 璁惧鍗忚鏄庣粏 /// </summary> [SugarTable(nameof(Dt_DeviceProtocolDetail), "璁惧鍗忚鏄庣粏")] - public class Dt_DeviceProtocolDetail + public class Dt_DeviceProtocolDetail : BaseEntity { /// <summary> /// 涓婚敭 /// </summary> + [ImporterHeader(Name = "涓婚敭")] + [ExporterHeader(DisplayName = "涓婚敭")] [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "涓婚敭")] public int Id { get; set; } /// <summary> /// 璁惧绫诲瀷 /// </summary> + [ImporterHeader(Name = "璁惧绫诲瀷")] + [ExporterHeader(DisplayName = "璁惧绫诲瀷")] [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "璁惧绫诲瀷")] public string DeviceType { get; set; } /// <summary> /// 璁惧鍗忚鍙傛暟鍚嶇О /// </summary> + [ImporterHeader(Name = "璁惧鍗忚鍙傛暟鍚嶇О")] + [ExporterHeader(DisplayName = "璁惧鍗忚鍙傛暟鍚嶇О")] [SugarColumn(IsNullable = false, ColumnDescription = "璁惧鍗忚鍙傛暟鍚嶇О")] - public string DeviceProParamName { get; set; } + public string DeviceProParamName { get; set; } /// <summary> /// 璁惧鍗忚鏄庣粏绫诲瀷 /// </summary> + [ImporterHeader(Name = "璁惧鍗忚鏄庣粏绫诲瀷")] + [ExporterHeader(DisplayName = "璁惧鍗忚鏄庣粏绫诲瀷")] [SugarColumn(Length = 50, ColumnDescription = "璁惧鍗忚鏄庣粏绫诲瀷")] public string ProtocolDetailType { get; set; } /// <summary> /// 璁惧鍗忚鏄庣粏鍙栧�� /// </summary> + [ImporterHeader(Name = "璁惧鍗忚鏄庣粏鍙栧��")] + [ExporterHeader(DisplayName = "璁惧鍗忚鏄庣粏鍙栧��")] [SugarColumn(Length = 50, IsNullable = false, ColumnDescription = "璁惧鍗忚鏄庣粏鍙栧��")] public string ProtocalDetailValue { get; set; } /// <summary> /// 璁惧鍗忚鏄庣粏璇存槑 /// </summary> + [ImporterHeader(Name = "璁惧鍗忚鏄庣粏璇存槑")] + [ExporterHeader(DisplayName = "璁惧鍗忚鏄庣粏璇存槑")] [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "璁惧鍗忚鏄庣粏璇存槑")] public string ProtocolDetailDes { get; set; } /// <summary> /// 澶囨敞 /// </summary> + [ImporterHeader(Name = "澶囨敞")] + [ExporterHeader(DisplayName = "澶囨敞")] [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "澶囨敞")] public string Remark { get; set; } } -- Gitblit v1.9.3