From 4f8d1da89bc7cf399e6d90d6230ad6c28114443a Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 23 六月 2025 11:20:13 +0800
Subject: [PATCH] 1.采购入库优化 2.采购退货推荐库位优化

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

diff --git a/util/LogUtil.cs b/util/LogUtil.cs
index 5840796..7c96c8c 100644
--- a/util/LogUtil.cs
+++ b/util/LogUtil.cs
@@ -22,7 +22,7 @@
                 .Select(it => it.Guid) //
                 .First();
 
-            detail = "[PDA]" + detail;
+            //detail = "[PDA]" + detail;
             // 鎵ц瀛樺偍杩囩▼
             db.Ado.ExecuteCommand(
                 "exec prc_log_create @edtUserGuid, @abtGuid, @abtTable, @detail, @orderNo",
@@ -36,5 +36,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