From 971e03ccbe5124d4761f56e71025453d1d4742bc Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 17 九月 2025 14:17:08 +0800
Subject: [PATCH] 111

---
 util/LogUtil.cs |   86 +++++++++++++++++++++---------------------
 1 files changed, 43 insertions(+), 43 deletions(-)

diff --git a/util/LogUtil.cs b/util/LogUtil.cs
index aeecbfe..8c88150 100644
--- a/util/LogUtil.cs
+++ b/util/LogUtil.cs
@@ -1,45 +1,45 @@
-锘縰sing NewPdaSqlServer.DB;
-using NewPdaSqlServer.entity;
-using SqlSugar;
-
-namespace NewPdaSqlServer.util;
-
-public class LogService : RepositoryNoEntity
+锘縩amespace NewPdaSqlServer.util
 {
-    /// <summary>
-    ///     鍒涘缓鏃ュ織璁板綍
-    /// </summary>
-    /// <param name="db">SqlSugar 鏁版嵁搴撲笂涓嬫枃</param>
-    /// <param name="edtUserNo">鐢ㄦ埛缂栧彿</param>
-    /// <param name="abtGuid">鍏宠仈鍗曟嵁id</param>
-    /// <param name="abtTable">琛ㄥ悕绉�</param>
-    /// <param name="detail">鏃ュ織鍐呭</param>
-    /// <param name="orderNo">鍗曟嵁鍙�</param>
-    public void CreateLog(SqlSugarScope db, string edtUserNo, string abtGuid,
-        string abtTable, string detail, string orderNo)
+    using NewPdaSqlServer.DB;
+    using NewPdaSqlServer.entity;
+    using SqlSugar;
+    using System;
+
+    public class LogService : RepositoryNoEntity
     {
-        var edtUserGuid = db.Queryable<SysUser>()
-            .Where(it => it.Account == edtUserNo)
-            .Select(it => it.Guid) //
-            .First();
+        /// <summary>
+        /// 鍒涘缓鏃ュ織璁板綍
+        /// </summary>
+        /// <param name="db">SqlSugar 鏁版嵁搴撲笂涓嬫枃</param>
+        /// <param name="edtUserNo">鐢ㄦ埛缂栧彿</param>
+        /// <param name="abtGuid">鍏宠仈鍗曟嵁id</param>
+        /// <param name="abtTable">琛ㄥ悕绉�</param>
+        /// <param name="detail">鏃ュ織鍐呭</param>
+        /// <param name="orderNo">鍗曟嵁鍙�</param>
+        public void CreateLog(SqlSugarScope db, string edtUserNo, string abtGuid, string abtTable, string detail, string orderNo)
+        {
+            var edtUserGuid = db.Queryable<SysUser>()
+                .Where(it => it.Account == edtUserNo)
+                .Select(it => it.Guid) //
+                .First();
 
-        //detail = "[PDA]" + detail;
-        // 鎵ц瀛樺偍杩囩▼
-        db.Ado.ExecuteCommand(
-            "exec prc_log_create @edtUserGuid, @abtGuid, @abtTable, @detail, @orderNo",
-            new
-            {
-                edtUserGuid,
-                abtGuid,
-                abtTable,
-                detail,
-                orderNo
-            }
-        );
-    }
+            //detail = "[PDA]" + detail;
+            // 鎵ц瀛樺偍杩囩▼
+            db.Ado.ExecuteCommand(
+                "exec prc_log_create @edtUserGuid, @abtGuid, @abtTable, @detail, @orderNo",
+                new
+                {
+                    edtUserGuid,
+                    abtGuid,
+                    abtTable,
+                    detail,
+                    orderNo
+                }
+            );
+        }
 
 
-    public void CreateLogI(
+            public void CreateLogI(
         SqlSugarScope db,
         Guid edtUserGuid,
         string abtGuid,
@@ -53,14 +53,11 @@
         int sendStatus,
         string executeTime)
     {
-        Db.Ado.ExecuteCommand(
+            Db.Ado.ExecuteCommand(
             "exec prc_log_create @edtUserGuid, @abtGuid, @abtTable, @detail, @hNo,@RtnLogGuid, @SendJson, @RtnJson, @xkyBeginTime, @xkyEndTime, @sendStatus, @executeTime",
-            new
-            {
+            new {
                 edtUserGuid,
-                abtGuid = string.IsNullOrEmpty(abtGuid)
-                    ? DBNull.Value
-                    : (object)abtGuid,
+                abtGuid = string.IsNullOrEmpty(abtGuid) ? DBNull.Value : (object)abtGuid,
                 abtTable = (object)abtTable ?? DBNull.Value,
                 detail,
                 hNo = orderNo,
@@ -73,4 +70,7 @@
                 executeTime = (object)executeTime ?? DBNull.Value
             });
     }
+    }
+
+    
 }
\ No newline at end of file

--
Gitblit v1.9.3