From 2da22fe69c1a48b719f8708dbe46b38c531bd4d2 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期四, 15 十二月 2022 17:09:06 +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