From 00a72fff219241eb5b0405a066cc859d07cf7735 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 17 九月 2025 10:23:44 +0800 Subject: [PATCH] 1111 --- service/Warehouse/MesDepotSectionsManager.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/service/Warehouse/MesDepotSectionsManager.cs b/service/Warehouse/MesDepotSectionsManager.cs index e69057f..33fda90 100644 --- a/service/Warehouse/MesDepotSectionsManager.cs +++ b/service/Warehouse/MesDepotSectionsManager.cs @@ -9,15 +9,16 @@ { public dynamic GetSectionName(WarehouseQuery query) { - var sectionName = Db.Queryable<MesDepotSections, MesDepots>((a, b) => - new JoinQueryInfos(JoinType.Inner, - a.DepotGuid == b.Guid)) // 纭繚Guid绫诲瀷姝g‘姣旇緝 + var sectionName = Db.Queryable<MesDepotSections, MesDepots>( + (a, b) => + new JoinQueryInfos(JoinType.Inner, + a.DepotGuid == b.Guid)) // 纭繚Guid绫诲瀷姝g‘姣旇緝 .Where((a, b) => a.DepotSectionCode == query.sectionCode) - .Select((a, b) => new // 鏀圭敤鍖垮悕绫诲瀷鏇夸唬dynamic + .Select((a, b) => new // 鏀圭敤鍖垮悕绫诲瀷鏇夸唬dynamic { a.DepotSectionName, - b.DepotName, // 鏄惧紡鎸囧畾瀛楁鍒悕 - b.DepotCode + DepotName = b.DepotName, // 鏄惧紡鎸囧畾瀛楁鍒悕 + DepotCode = b.DepotCode }).Single(); if (sectionName == null) @@ -32,10 +33,10 @@ if (string.IsNullOrEmpty(query.sectionCode)) throw new Exception("璇锋壂搴撲綅鏉$爜!"); - var mesDepotSections = Db - .Queryable<MesDepotSections, MesDepots>((a, b) => - new JoinQueryInfos(JoinType.Inner, - a.DepotGuid == b.Guid)) + var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>( + (a, b) => + new JoinQueryInfos(JoinType.Inner, + a.DepotGuid == b.Guid)) .Where((a, b) => a.DepotSectionCode == query.sectionCode) .Select((a, b) => new MesDepotSections { @@ -56,10 +57,10 @@ if (string.IsNullOrEmpty(entity.sectionCode)) throw new Exception("璇锋壂搴撲綅鏉$爜!"); - var mesDepotSections = Db - .Queryable<MesDepotSections, MesDepots>((a, b) => - new JoinQueryInfos(JoinType.Inner, - a.Zuid.ToString() == b.Zuid)) + var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>( + (a, b) => + new JoinQueryInfos(JoinType.Inner, + a.Zuid.ToString() == b.Zuid)) .Where((a, b) => a.DepotSectionCode == entity.sectionCode) .First(); if (mesDepotSections == null) -- Gitblit v1.9.3