From 5bc70ea9041912fd6239822b32748d55d6fb6f4b Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 02 四月 2025 14:29:13 +0800 Subject: [PATCH] 1.采购入库返回值调整,优化效率 2.新增货主类型通用类。 --- service/Warehouse/MesDepotSectionsManager.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/service/Warehouse/MesDepotSectionsManager.cs b/service/Warehouse/MesDepotSectionsManager.cs index ec846e0..33fda90 100644 --- a/service/Warehouse/MesDepotSectionsManager.cs +++ b/service/Warehouse/MesDepotSectionsManager.cs @@ -7,14 +7,19 @@ public class MesDepotSectionsManager : Repository<MesDepotSections> { - public string GetSectionName(WarehouseQuery query) + public dynamic GetSectionName(WarehouseQuery query) { var sectionName = Db.Queryable<MesDepotSections, MesDepots>( (a, b) => new JoinQueryInfos(JoinType.Inner, - a.DepotGuid == b.Guid)) + a.DepotGuid == b.Guid)) // 纭繚Guid绫诲瀷姝g‘姣旇緝 .Where((a, b) => a.DepotSectionCode == query.sectionCode) - .Select((a, b) => a.DepotSectionName).Single(); + .Select((a, b) => new // 鏀圭敤鍖垮悕绫诲瀷鏇夸唬dynamic + { + a.DepotSectionName, + DepotName = b.DepotName, // 鏄惧紡鎸囧畾瀛楁鍒悕 + DepotCode = b.DepotCode + }).Single(); if (sectionName == null) throw new Exception("搴撲綅缂栫爜 " + query.sectionCode + " 涓嶅瓨鍦紝璇风‘璁わ紒"); -- Gitblit v1.9.3