From 8b3c150ccc930e334f787f85db75784a54f08b0f Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期二, 15 十月 2024 14:32:25 +0800
Subject: [PATCH] 性能曲线

---
 Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/07-PumpMainAndPartMap/PumpMainAndPartMap.cs |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/07-PumpMainAndPartMap/PumpMainAndPartMap.cs b/Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/07-PumpMainAndPartMap/PumpMainAndPartMap.cs
index 87b767f..c2c0d09 100644
--- a/Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/07-PumpMainAndPartMap/PumpMainAndPartMap.cs
+++ b/Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/07-PumpMainAndPartMap/PumpMainAndPartMap.cs
@@ -3,21 +3,21 @@
     /// <summary>
     ///
     /// </summary>
-    public partial class PumpMainAndPartMap
+    public partial class AssetsPumpMainAndPartMapping
     {
         #region Cache
 
         //鑾峰彇缂撳瓨
-        private static List<Model.PumpMainAndPartMap> GetCache()
+        private static List<Model.AssetsPumpMainAndPartMap> GetCache()
         {
-            var all = PumpMainAndPartMapCacheHelper.GetSet(() =>
+            var all = AssetsPumpMainAndPartMapCacheHelper.GetSet(() =>
             {
-                var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+                var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
                 var entity_list = dal.GetAll();
                 var model_list = Entity2Models(entity_list);
                 if (model_list == null)
                 {
-                    model_list = new List<Model.PumpMainAndPartMap>();
+                    model_list = new List<Model.AssetsPumpMainAndPartMap>();
                 }
                 return model_list;
             }, Yw.Service.ConfigHelper.CacheKeepTime, Yw.Service.ConfigHelper.CacheRandomTime);
@@ -27,7 +27,7 @@
         //閫氳繃 ID 鏇存柊缂撳瓨
         private static void UpdateCache(long ID)
         {
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var entity_ds = dal.GetByID(ID);
             var model_ds = Entity2Model(entity_ds);
             var all = GetCache();
@@ -40,13 +40,13 @@
             {
                 model.Reset(model_ds);
             }
-            PumpSeriesCacheHelper.Trigger();
+            AssetsPumpSeriesCacheHelper.Trigger();
         }
 
         //閫氳繃 PartID 鏇存柊缂撳瓨
         public static void UpdateCacheByPartID(long ID)
         {
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var alllist = dal.GetAll();
             var select = alllist.Find(x => x.PumpPartID == ID);
             var model_ds = Entity2Model(select);
@@ -60,7 +60,7 @@
             {
                 model.Reset(model_ds);
             }
-            PumpSeriesCacheHelper.Trigger();
+            AssetsPumpSeriesCacheHelper.Trigger();
         }
 
         //閫氳繃 Ids 鏇存柊缂撳瓨
@@ -70,7 +70,7 @@
             {
                 return;
             }
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var entity_list = dal.GetByIds(Ids);
             var model_list = Entity2Models(entity_list);
             var all = GetCache();
@@ -79,7 +79,7 @@
             {
                 all.AddRange(model_list);
             }
-            PumpSeriesCacheHelper.Trigger();
+            AssetsPumpSeriesCacheHelper.Trigger();
         }
 
         //绉婚櫎缂撳瓨
@@ -87,16 +87,16 @@
         {
             var all = GetCache();
             all.RemoveAll(x => x.ID == ID);
-            PumpSeriesCacheHelper.Trigger();
+            AssetsPumpSeriesCacheHelper.Trigger();
         }
 
         //閫氳繃缁処D绉婚櫎缂撳瓨
         public static void RemoveCacheByGroupID(long ID)
         {
             var all = GetCache();
-            var maplist = PumpGroupAndMainMap.GetMainIDByGroupID(ID);
+            var maplist = AssetsPumpGroupAndMainMap.GetMainIDByGroupID(ID);
             all.RemoveAll(item => maplist.Any(mapItem => mapItem == item.ID));
-            PumpSeriesCacheHelper.Trigger();
+            AssetsPumpSeriesCacheHelper.Trigger();
         }
 
         /// <summary>
@@ -104,7 +104,7 @@
         /// </summary>
         public static void PublishCache(string key)
         {
-            PumpSeriesCacheHelper.Publish(key);
+            AssetsPumpSeriesCacheHelper.Publish(key);
         }
 
         #endregion Cache
@@ -114,7 +114,7 @@
         /// <summary>
         /// 鑾峰彇鎵�鏈�
         /// </summary>
-        public List<Model.PumpMainAndPartMap> GetAll()
+        public List<Model.AssetsPumpMainAndPartMap> GetAll()
         {
             var all = GetCache();
             return all;
@@ -123,7 +123,7 @@
         /// <summary>
         /// 閫氳繃 ID 鑾峰彇
         /// </summary>
-        public Model.PumpMainAndPartMap GetByID(long ID)
+        public Model.AssetsPumpMainAndPartMap GetByID(long ID)
         {
             var all = GetAll();
             return all.Find(x => x.ID == ID);
@@ -132,7 +132,7 @@
         /// <summary>
         /// 閫氳繃 ID 鑾峰彇
         /// </summary>
-        public List<Model.PumpMainAndPartMap> GetByIds(List<long> Ids)
+        public List<Model.AssetsPumpMainAndPartMap> GetByIds(List<long> Ids)
         {
             if (Ids == null || Ids.Count < 1)
             {
@@ -162,13 +162,13 @@
         /// <summary>
         /// 鎻掑叆涓�鏉℃暟鎹�
         /// </summary>
-        public long Insert(Model.PumpMainAndPartMap model)
+        public long Insert(Model.AssetsPumpMainAndPartMap model)
         {
             if (model == null)
             {
                 return default;
             }
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var entity = Model2Entity(model);
             var id = dal.Insert(entity);
             if (id > 0)
@@ -181,13 +181,13 @@
         /// <summary>
         /// 鎻掑叆澶氭潯
         /// </summary>
-        public bool Inserts(List<Model.PumpMainAndPartMap> list)
+        public bool Inserts(List<Model.AssetsPumpMainAndPartMap> list)
         {
             if (list == null || list.Count < 1)
             {
                 return false;
             }
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var entity_list = Model2Entities(list);
             var ids = dal.InsertsR(entity_list);
             if (ids != null && ids.Count > 0)
@@ -205,14 +205,14 @@
         /// <summary>
         /// 鏇存柊涓�鏉�
         /// </summary>
-        public bool Update(Model.PumpMainAndPartMap model)
+        public bool Update(Model.AssetsPumpMainAndPartMap model)
         {
             if (model == null)
             {
                 return false;
             }
             var entity = Model2Entity(model);
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var bol = dal.Update(entity);
             if (bol)
             {
@@ -224,7 +224,7 @@
         /// <summary>
         /// 鎵归噺鏇存柊
         /// </summary>
-        public bool Updates(List<Model.PumpMainAndPartMap> list)
+        public bool Updates(List<Model.AssetsPumpMainAndPartMap> list)
         {
             if (list == null || list.Count < 1)
             {
@@ -235,7 +235,7 @@
                 return false;
             }
             var entity_list = Model2Entities(list);
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var bol = dal.Updates(entity_list);
             if (bol)
             {
@@ -254,7 +254,7 @@
         public bool DeleteByID(long ID, out string Msg)
         {
             Msg = string.Empty;
-            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMainAndPartMap>();
+            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpMainAndPartMap>();
             var bol = dal.DeleteByID(ID);
             if (bol)
             {

--
Gitblit v1.9.3