From 5de35354e8dfcb4933350d0d1b645d400bcf23ab Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期二, 22 七月 2025 15:30:09 +0800
Subject: [PATCH] 优化多组织
---
MES.Service/service/Warehouse/MesDepotSectionsManager.cs | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/MES.Service/service/Warehouse/MesDepotSectionsManager.cs b/MES.Service/service/Warehouse/MesDepotSectionsManager.cs
index 0fbb744..7a944c6 100644
--- a/MES.Service/service/Warehouse/MesDepotSectionsManager.cs
+++ b/MES.Service/service/Warehouse/MesDepotSectionsManager.cs
@@ -28,9 +28,9 @@
if (string.IsNullOrEmpty(query.sectionCode))
throw new Exception("璇锋壂搴撲綅鏉$爜!");
- var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>(
- (a, b) =>
- new JoinQueryInfos(JoinType.Inner, a.DepotId == b.DepotId))
+ var mesDepotSections = Db
+ .Queryable<MesDepotSections, MesDepots>((a, b) =>
+ new JoinQueryInfos(JoinType.Inner, a.DepotId == b.DepotId))
.Where((a, b) => a.DepotSectionCode == query.sectionCode)
.Select((a, b) => new MesDepotSections
{
@@ -51,10 +51,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