From 6dae2517aa69e7a81e87b8cc2bcb63f401fa77dd Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 21 八月 2025 13:46:51 +0800
Subject: [PATCH] 1.AGV调用新增日志。

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

diff --git a/util/LogUtil.cs b/util/LogUtil.cs
index e91a9bc..8c88150 100644
--- a/util/LogUtil.cs
+++ b/util/LogUtil.cs
@@ -1,10 +1,11 @@
 锘縩amespace NewPdaSqlServer.util
 {
+    using NewPdaSqlServer.DB;
     using NewPdaSqlServer.entity;
     using SqlSugar;
     using System;
 
-    public class LogService
+    public class LogService : RepositoryNoEntity
     {
         /// <summary>
         /// 鍒涘缓鏃ュ織璁板綍
@@ -36,5 +37,40 @@
                 }
             );
         }
+
+
+            public void CreateLogI(
+        SqlSugarScope db,
+        Guid edtUserGuid,
+        string abtGuid,
+        string abtTable,
+        string detail,
+        string orderNo,
+        string sendJson,
+        string rtnJson,
+        string xkyBeginTime,
+        string xkyEndTime,
+        int sendStatus,
+        string executeTime)
+    {
+            Db.Ado.ExecuteCommand(
+            "exec prc_log_create @edtUserGuid, @abtGuid, @abtTable, @detail, @hNo,@RtnLogGuid, @SendJson, @RtnJson, @xkyBeginTime, @xkyEndTime, @sendStatus, @executeTime",
+            new {
+                edtUserGuid,
+                abtGuid = string.IsNullOrEmpty(abtGuid) ? DBNull.Value : (object)abtGuid,
+                abtTable = (object)abtTable ?? DBNull.Value,
+                detail,
+                hNo = orderNo,
+                RtnLogGuid = DBNull.Value,
+                SendJson = sendJson,
+                RtnJson = rtnJson,
+                xkyBeginTime = (object)xkyBeginTime ?? DBNull.Value,
+                xkyEndTime = (object)xkyEndTime ?? DBNull.Value,
+                sendStatus = (object)sendStatus ?? DBNull.Value,
+                executeTime = (object)executeTime ?? DBNull.Value
+            });
     }
+    }
+
+    
 }
\ No newline at end of file

--
Gitblit v1.9.3