From a01b896d96403527de318c7188b91998299d01da Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期二, 09 九月 2025 23:21:22 +0800 Subject: [PATCH] 1.其他入库新增单号条码限制 --- 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