From bb46e7c37ddbdf44e4a7b729b608b39a3561f1e4 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 20 5月 2025 11:46:40 +0800
Subject: [PATCH] 高级查询过滤优化了,不再用这种方式了

---
 PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
index 7f09104..7b61b13 100644
--- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
+++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
@@ -42,6 +42,10 @@
     /// <returns></returns>
     public async Task<MesOrderResponse> CommonPick(IServiceProvider _serviceProvider, PickInput input, MyCurrentUser myCurrentUser)
     {
+        if (string.IsNullOrEmpty(input.TaskCode))
+        {
+            throw new UserFriendlyException("璇疯緭鍏ヤ换鍔$紪鍙�");
+        };
         if (string.IsNullOrEmpty(input.PipeSpecCode))
         {
             throw new UserFriendlyException("璇疯緭鍏ョ娈电紪鐮�");
@@ -103,9 +107,7 @@
             });
         }
         //鐗╂枡鍙傛暟鍒楄〃
-        var firstWorkPlans = await workPlanAppService.GetListByFilterAsync(x => x.PipeSpecCode == input.PipeSpecCode);
-
-        var firstWorkPlan = await workPlanAppService.GetSingleByFilterAsync(x => x.PipeSpecCode == input.PipeSpecCode);
+        var firstWorkPlan = await workPlanAppService.GetSingleByFilterAsync(x => x.TaskCode == input.TaskCode);
         var callMaterialOrder = await callMaterialOrderAppService.GetSingleByFilterAsync(x => x.DataIdentifier == firstWorkPlan.DataIdentifier);
         //TODO:杩欓噷璋冪敤wms鐨勫彨鏂欐帴鍙�
         try

--
Gitblit v1.9.3