From 70041775f6292fe60f9b4f0cc0ea8dd2f719cafe Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期一, 02 十二月 2024 16:32:31 +0800
Subject: [PATCH] 增加资产表字段

---
 Service/HStation.Service.Assets.Core/04-dal/02-postgresql/01-PumpMain/PumpGroup.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Service/HStation.Service.Assets.Core/04-dal/02-postgresql/01-PumpMain/PumpGroup.cs b/Service/HStation.Service.Assets.Core/04-dal/02-postgresql/01-PumpMain/PumpGroup.cs
index da06575..95c0854 100644
--- a/Service/HStation.Service.Assets.Core/04-dal/02-postgresql/01-PumpMain/PumpGroup.cs
+++ b/Service/HStation.Service.Assets.Core/04-dal/02-postgresql/01-PumpMain/PumpGroup.cs
@@ -36,12 +36,12 @@
                     }
                     else
                     {
-                        var idlist = db.Queryable<Entity.AssetsPumpGroupAndMainMap>()
-                        .Where(x => x.PumpGroupID == group.ID)
-                        .Select(x => x.PumpMainID) // 鍋囪 PumpGroupID 鏄笌 AssetsPumpMain 鍏宠仈鐨勫閿�
+                        var idlist = db.Queryable<Entity.AssetsPumpGroupAndMainMapping>()
+                        .Where(x => x.GroupID == group.ID)
+                        .Select(x => x.MainID) // 鍋囪 GroupID 鏄笌 AssetsPumpMain 鍏宠仈鐨勫閿�
                         .ToList();
-                        var main = db.Queryable<Entity.AssetsPumpGroupAndMainMap>()
-                       .Where(x => x.PumpGroupID == group.ID)
+                        var main = db.Queryable<Entity.AssetsPumpGroupAndMainMapping>()
+                       .Where(x => x.GroupID == group.ID)
                         .ToList();
                         if (main.Count > 0)
                         {

--
Gitblit v1.9.3