From f2333318a31e92f6cbc3a572d8eb9fae9da0f892 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期六, 12 十月 2024 13:59:15 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0

---
 Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMainManage/PumpPart.cs |   24 ++++++++++--------------
 1 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMainManage/PumpPart.cs b/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMainManage/PumpPart.cs
index c444cb4..dc519b2 100644
--- a/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMainManage/PumpPart.cs
+++ b/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMainManage/PumpPart.cs
@@ -5,7 +5,7 @@
     /// <summary>
     ///
     /// </summary>
-    public partial class PumpPartMain : BaseDAL_Sorter<Entity.PumpPartMain>, IPumpPartMain
+    public partial class AssetsPumpPartMain : BaseDAL_Sorter<Entity.AssetsPumpPartMain>, IAssetsPumpPartMain
     {
         /// <summary>
         ///
@@ -16,7 +16,7 @@
         }
 
         //鎻掑叆鎷撳睍
-        public long InsertsEx(Entity.PumpPartMain part, List<Entity.PumpPropContent> pumpPropContents, Entity.PumpMainAndPartMap partmap)
+        public long InsertsEx(Entity.AssetsPumpPartMain part, List<Entity.AssetsPumpPropContent> AssetsPumpPropContents, Entity.AssetsPumpMainAndPartMap partmap)
         {
             if (part == null)
             {
@@ -46,13 +46,9 @@
                             }
                             else
                             {
-                                if (pumpPropContents != null)
+                                if (AssetsPumpPropContents != null)
                                 {
-                                    foreach (var item in pumpPropContents)
-                                    {
-                                        item.PartID = result;
-                                    }
-                                    var content = db.Insertable(pumpPropContents).ExecuteReturnSnowflakeId();
+                                    var content = db.Insertable(AssetsPumpPropContents).ExecuteReturnSnowflakeId();
                                     if (content < 0)
                                     {
                                         db.RollbackTran();
@@ -75,7 +71,7 @@
         }
 
         //缂栬緫鎷撳睍
-        public bool UpdateEx(Entity.PumpPartMain part, List<Entity.PumpPropContent> pumpPropContents)
+        public bool UpdateEx(Entity.AssetsPumpPartMain part, List<Entity.AssetsPumpPropContent> AssetsPumpPropContents)
         {
             if (part == null)
             {
@@ -94,9 +90,9 @@
                     }
                     else
                     {
-                        if (pumpPropContents != null)
+                        if (AssetsPumpPropContents != null)
                         {
-                            var propresult = db.Updateable(pumpPropContents).ExecuteCommandHasChange();
+                            var propresult = db.Updateable(AssetsPumpPropContents).ExecuteCommandHasChange();
                             if (!propresult)
                             {
                                 db.RollbackTran();
@@ -116,7 +112,7 @@
         }
 
         //鍒犻櫎鎷撳睍 (鍒犻櫎浜у搧琛ㄥ強灞炴�ц〃)
-        public bool DeleteEx(Entity.PumpPartMain part, List<Entity.PumpPropContent> pumpPropContents)
+        public bool DeleteEx(Entity.AssetsPumpPartMain part, List<Entity.AssetsPumpPropContent> AssetsPumpPropContents)
         {
             if (part == null)
             {
@@ -135,9 +131,9 @@
                     }
                     else
                     {
-                        if (pumpPropContents != null)
+                        if (AssetsPumpPropContents != null)
                         {
-                            var propresult = db.Deleteable(pumpPropContents).ExecuteCommand() > 0;
+                            var propresult = db.Deleteable(AssetsPumpPropContents).ExecuteCommand() > 0;
                             if (!propresult)
                             {
                                 db.RollbackTran();

--
Gitblit v1.9.3