From 458ff50a54816f78dcdd249f4dcdaa09b9fafc76 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 10 二月 2023 09:40:25 +0800
Subject: [PATCH] 生成送货单条件判断(订单数量-已发货数量+退货数量)金蝶数据库引用安瑞的

---
 WebAPI/Controllers/ReportController.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/WebAPI/Controllers/ReportController.cs b/WebAPI/Controllers/ReportController.cs
index dada4f0..fdfefd9 100644
--- a/WebAPI/Controllers/ReportController.cs
+++ b/WebAPI/Controllers/ReportController.cs
@@ -44,11 +44,11 @@
                 //鍏朵粬杩囨护
                 if (msg.Trim() == "")
                 {
-                    msg = " Where hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = " Where hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 else
                 {
-                    msg = msg + " and   hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = msg + " and   hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 //杞崲鐗规畩瀛楃
                 if (Common.SQLtoChange(msg, ref VsWhere, ref PcWhere) == false)
@@ -112,11 +112,11 @@
                 //鍏朵粬杩囨护
                 if (msg.Trim() == "")
                 {
-                    msg = " Where hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = " Where hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 else
                 {
-                    msg = msg + " and   hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = msg + " and   hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 //杞崲鐗规畩瀛楃
                 if (Common.SQLtoChange(msg, ref VsWhere, ref PcWhere) == false)
@@ -182,11 +182,11 @@
                 //鍏朵粬杩囨护
                 if (msg.Trim() == "")
                 {
-                    msg = " Where hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = " Where hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 else
                 {
-                    msg = msg + " and   hsupid in (select HItemID from h_v_IF_Supplier where hnumber=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
+                    msg = msg + " and   hsupid in (select HSupID from h_v_Gy_UserSupplierList where 鐢ㄦ埛=^^" + HSupNo.Trim() + "^^) " + sqlWhere;
                 }
                 //杞崲鐗规畩瀛楃
                 if (Common.SQLtoChange(msg, ref VsWhere, ref PcWhere) == false)

--
Gitblit v1.9.1