From 4d9c473a0bd2ac6128b09b7609b072a33c70bd62 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 28 十一月 2023 09:42:25 +0800
Subject: [PATCH] 取消根据用户关联客户过滤

---
 WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
index 21886e5..afe951a 100644
--- a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
+++ b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
@@ -1914,27 +1914,29 @@
                 }
                 else
                 {
-                    string sql = "select * from Gy_UserCustomerRelation where HUserID = '" + CurUserID + "'";
-                    ds = oCN.RunProcReturn(sql, "Gy_UserCustomerRelation");
-                    if (ds == null || ds.Tables[0].Rows.Count == 0)
-                    {
-                        sWhere = " and 1 = 0";
-                    }
-                    else
-                    {
-                        sWhere = " and HCusID in (";
-                        for(var i = 0; i < ds.Tables[0].Rows.Count; i++)
-                        {
-                            if (i < ds.Tables[0].Rows.Count - 1)
-                            {
-                                sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ",";
-                            }
-                            else
-                            {
-                                sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ")";
-                            }
-                        }
-                    }
+                    //string sql = "select * from Gy_UserCustomerRelation where HUserID = '" + CurUserID + "'";
+                    //ds = oCN.RunProcReturn(sql, "Gy_UserCustomerRelation");
+                    //if (ds == null || ds.Tables[0].Rows.Count == 0)
+                    //{
+                    //    sWhere = " and 1 = 0";
+                    //}
+                    //else
+                    //{
+                    //    sWhere = " and HCusID in (";
+                    //    for(var i = 0; i < ds.Tables[0].Rows.Count; i++)
+                    //    {
+                    //        if (i < ds.Tables[0].Rows.Count - 1)
+                    //        {
+                    //            sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ",";
+                    //        }
+                    //        else
+                    //        {
+                    //            sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ")";
+                    //        }
+                    //    }
+                    //}
+
+                    sWhere = " and 1=1 ";
                 }
 
                 objJsonResult.code = "1";

--
Gitblit v1.9.1