From 51a690bf62cc777403b25b4fece8429941cb4ec9 Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期二, 08 十一月 2022 14:40:37 +0800
Subject: [PATCH] 优化

---
 WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs b/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs
index 00f955e..3f88755 100644
--- a/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs
+++ b/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs
@@ -57,7 +57,7 @@
                 bool isCgjl = Security_Log("Cg_POOrderBill_PurchasManager", 1, true, user);
                 if (!isCgjl)
                 {
-                    sWhere += $" and HEmpID in (select HEmpID from Gy_Czygl where Czymc='{user}' )";
+                    sWhere += $" and HEmpID in (select HEmpID from Gy_Czygl where Czymc='{user}' and HEmpID >0  )";
                 }
                 string sql = "select * from h_v_IF_POOrderBillList where 1 = 1 " + sWhere;
                 ds = oCN.RunProcReturn(sql, "h_v_IF_POOrderBillList");
@@ -91,9 +91,9 @@
                 {
                     foreach (DataColumn item in ds.Tables[0].Columns)
                     {
-                        optionList.Add(@"{ field: 'hmainid', title: '"+ item.ToString() + "', sort: true, hide: false }");
+                        optionList.Add(@"{ field: 'hmainid', title: '" + item.ToString() + "', sort: true, hide: false }");
                     }
-                    string option = string.Join(",",optionList);
+                    string option = string.Join(",", optionList);
                     objJsonResult.code = "1";
                     objJsonResult.count = 1;
                     objJsonResult.Message = "Sucess锛�";
@@ -144,7 +144,7 @@
                             title = item.ToString(),
                             sort = true,
                             hide = false,
-                        });  
+                        });
                     }
                     string option = string.Join(",", optionList);
                     objJsonResult.code = "1";
@@ -661,5 +661,5 @@
 
         //
     }
- 
+
 }
\ No newline at end of file

--
Gitblit v1.9.1