From ba195aa9d27aa00bebd81fb795f5bf6bf74ecc9f Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期五, 08 八月 2025 16:37:14 +0800
Subject: [PATCH] 出战汇报取消生产资源控制

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

diff --git a/WebAPI/Controllers/ReportPlatFormController.cs b/WebAPI/Controllers/ReportPlatFormController.cs
index af42dcf..2daaede 100644
--- a/WebAPI/Controllers/ReportPlatFormController.cs
+++ b/WebAPI/Controllers/ReportPlatFormController.cs
@@ -332,7 +332,7 @@
 
                 ds = oCN.RunProcReturn("select * from h_v_Gy_UserButton where 鐢ㄦ埛鍚嶇О='" + user+ "' order by 鎸夐挳鎺掑簭", "h_v_Gy_UserButton");
 
-                if (ds==null && ds.Tables[0].Rows.Count <= 0)
+                if (ds.Tables[0]==null || ds.Tables[0].Rows.Count <1)
                 {
                     ds = oCN.RunProcReturn("select * from h_v_Gy_UserButton where 鐢ㄦ埛鍚嶇О='admin' order by 鎸夐挳鎺掑簭", "h_v_Gy_UserButton");
                 }

--
Gitblit v1.9.1