From 2568dccd86ae777f49dcf9c23e5ddd5a55bc2795 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 06 十一月 2024 12:10:36 +0800
Subject: [PATCH] 森楷其他入库模块扫条码同步入库申请单

---
 WebAPI/Controllers/CJGL/Cj_StationInBillController.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
index 0e5dc14..6a5c68d 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
@@ -578,10 +578,10 @@
 Where a.HInterID={HProcExchInterID} and b.HEntryID={HProcExchEntryID}
 ) a
 inner join (
-select a.HICMOInterID,a.HICMOEntryID, b.HProcID 
+select a.HICMOInterID,a.HICMOEntryID,isnull(c.HItemID,0) HProcID 
 from Sc_PPBomBillMain a with(nolock) 
 inner join Sc_PPBomBillSub b with(nolock)  on a.HInterID=b.HInterID
-Where b.HKeyMaterID_Line<>0
+left join Gy_Process c on b.HProcName = c.HName
 )b on a.HICMOInterID=b.HICMOInterID and a.HICMOEntryID=b.HICMOEntryID and a.HProcID=b.HProcID", "Sc_ProcessExchangeBillMain");
 
                     if (ds.Tables[0].Rows.Count > 0) {

--
Gitblit v1.9.1