From 357693611c60d93fb17189273d4c91dab364f0d4 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 20 十二月 2024 10:09:11 +0800 Subject: [PATCH] 压缩机整改 --- Service/HStation.Service.Assets.Core/02-model/21-compressor/AssetsCompressorSeries.cs | 37 ++++++++++++++++--------------------- 1 files changed, 16 insertions(+), 21 deletions(-) diff --git a/Service/HStation.Service.Assets.Core/02-model/12-Compressor/AssetsCompressorSeries.cs b/Service/HStation.Service.Assets.Core/02-model/21-compressor/AssetsCompressorSeries.cs similarity index 74% rename from Service/HStation.Service.Assets.Core/02-model/12-Compressor/AssetsCompressorSeries.cs rename to Service/HStation.Service.Assets.Core/02-model/21-compressor/AssetsCompressorSeries.cs index 6f38411..c9eab15 100644 --- a/Service/HStation.Service.Assets.Core/02-model/12-Compressor/AssetsCompressorSeries.cs +++ b/Service/HStation.Service.Assets.Core/02-model/21-compressor/AssetsCompressorSeries.cs @@ -3,38 +3,38 @@ namespace HStation.Model { /// <summary> - /// 绯诲垪 + /// 鍘嬬缉鏈虹郴鍒� /// </summary> - [SysType("assets_compressor_series")] - [SugarTable("assets_compressor_series")] - public class AssetsCompressorSeries : BaseModel, IParas, IFlags, ITagName, ISorter, System.ICloneable + public class AssetsCompressorSeries : BaseModel, IParas, IFlags, ITagName, ITreeSorter, System.ICloneable { /// <summary> /// /// </summary> - public AssetsCompressorSeries() - { } + public AssetsCompressorSeries() { } + /// <summary> + /// + /// </summary> public AssetsCompressorSeries(AssetsCompressorSeries rhs) : base(rhs) { - this.ID = rhs.ID; - this.ParentIds = rhs.ParentIds; - this.CatalogID = rhs.CatalogID; + this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; - this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras); + this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } + /// <summary> + /// + /// </summary> public void Reset(AssetsCompressorSeries rhs) { this.ID = rhs.ID; - this.ParentIds = rhs.ParentIds; - this.CatalogID = rhs.CatalogID; + this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; - this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras); + this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; @@ -45,11 +45,6 @@ /// 鐖剁骇id鍒楄〃 /// </summary> public List<long> ParentIds { get; set; } - - /// <summary> - /// 鎵�灞炵被鍒獻D - /// </summary> - public long CatalogID { get; set; } /// <summary> /// 鍚嶇О @@ -84,14 +79,14 @@ /// <summary> /// /// </summary> - public AssetsPumpSeries Clone() + public AssetsCompressorSeries Clone() { - return (AssetsPumpSeries)this.MemberwiseClone(); + return new AssetsCompressorSeries(this); } object ICloneable.Clone() { - return this.MemberwiseClone(); + return this.Clone(); } } } \ No newline at end of file -- Gitblit v1.9.3