duheng
2024-11-17 a2a57963e160a319276c5c8499f16c9809056e4c
Service/HStation.Service.Assets.Core/04-dal/03-sqlite/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)
                        {