From 56e4b8aab223072bef1e1749b8ee9e499dd04f83 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 19 十二月 2024 09:16:36 +0800
Subject: [PATCH] 修改阀门表

---
 Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMain/PumpMain.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMain/PumpMain.cs b/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMain/PumpMain.cs
index 96918b2..541a48b 100644
--- a/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMain/PumpMain.cs
+++ b/Service/HStation.Service.Assets.Core/04-dal/03-sqlite/01-PumpMain/PumpMain.cs
@@ -36,7 +36,7 @@
                     }
                     else
                     {
-                        var map = db.Queryable<Entity.AssetsPumpGroupAndMainMap>().ToList().Find(x => x.PumpMainID == ID);
+                        var map = db.Queryable<Entity.AssetsPumpGroupAndMainMapping>().ToList().Find(x => x.MainID == ID);
                         if (map != null)
                         {
                             var mapresult = db.Deleteable(map).ExecuteCommand() > 0;
@@ -59,7 +59,7 @@
         }
 
         //鎻掑叆鎷撳睍
-        public long InsertsEx(Entity.AssetsPumpMain AssetsPumpMain, Entity.AssetsPumpGroupAndMainMap AssetsPumpGroupAndMainMap)
+        public long InsertsEx(Entity.AssetsPumpMain AssetsPumpMain, Entity.AssetsPumpGroupAndMainMapping AssetsPumpGroupAndMainMap)
         {
             if (AssetsPumpMain == null)
             {
@@ -80,7 +80,7 @@
                     {
                         if (AssetsPumpGroupAndMainMap != null)
                         {
-                            AssetsPumpGroupAndMainMap.PumpMainID = result;
+                            AssetsPumpGroupAndMainMap.MainID = result;
                             var mapresult = db.Insertable(AssetsPumpGroupAndMainMap).ExecuteReturnSnowflakeId();
                             if (mapresult < 0)
                             {

--
Gitblit v1.9.3