From a593dfae54de741b8ca84d375357c5ca130faccb Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 19 5月 2025 16:59:00 +0800
Subject: [PATCH] 11

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