From 850acf915061b9c40e486e35f88d2f24e013da22 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期日, 31 八月 2025 21:21:56 +0800
Subject: [PATCH] 1.销售退货优化——hyx 2.销售出库优化——hyx 3.库位查询——cdk
---
util/LogUtil.cs | 40 ++++++++++++++++++++++++++++++++++++++--
1 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/util/LogUtil.cs b/util/LogUtil.cs
index 5840796..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>
/// 鍒涘缓鏃ュ織璁板綍
@@ -22,7 +23,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 +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