啊鑫
10 天以前 0aa54059b26e6641196e9953490dd18616e916e3
util/LogUtil.cs
@@ -1,9 +1,8 @@
namespace NewPdaSqlServer.util
{
    using NewPdaSqlServer.DB;
using NewPdaSqlServer.DB;
    using NewPdaSqlServer.entity;
    using SqlSugar;
    using System;
namespace NewPdaSqlServer.util;
    public class LogService : RepositoryNoEntity
    {
@@ -16,7 +15,8 @@
        /// <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)
    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)
@@ -55,9 +55,12 @@
    {
            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,
@@ -70,7 +73,4 @@
                executeTime = (object)executeTime ?? DBNull.Value
            });
    }
    }
}