From fd5f7c86beec35f6b7cde3f16f23c6cf1279a447 Mon Sep 17 00:00:00 2001
From: yantian yue <306727702@qq.com>
Date: 星期四, 28 十二月 2023 15:59:47 +0800
Subject: [PATCH] 更新

---
 YX.DAL/System_Dal.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/YX.DAL/System_Dal.cs b/YX.DAL/System_Dal.cs
index 5d655f3..b4e4aa9 100644
--- a/YX.DAL/System_Dal.cs
+++ b/YX.DAL/System_Dal.cs
@@ -134,14 +134,14 @@
             }
         }
 
-        public static DataTable GetSystemLog(string ip) 
+        public static DataTable GetSystemLog(string ip ,string type) 
         {
             DataTable dt = new DataTable();
             try
             {
                 using (Sam_DBEntities db = new Sam_DBEntities()) 
                 {
-                    var sql = @"SELECT top 35 LogMessage,CreateTime FROM Base_Log where type='绉伴噸' and LocalIP= '" + ip+ "'  ORDER BY CreateTime DESC ";
+                    var sql = @"SELECT top 35 LogMessage,CreateTime FROM Base_Log where type='" + type + "' and LocalIP= '" + ip+ "'  ORDER BY CreateTime DESC ";
                     dt = SqlHelper.ExecuteDataset(db.Database.Connection.ConnectionString, CommandType.Text, sql).Tables[0];
                 }
             }

--
Gitblit v1.9.3