From 971e03ccbe5124d4761f56e71025453d1d4742bc Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 17 九月 2025 14:17:08 +0800
Subject: [PATCH] 111

---
 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