啊鑫
3 天以前 00a72fff219241eb5b0405a066cc859d07cf7735
util/LogUtil.cs
@@ -1,8 +1,9 @@
using NewPdaSqlServer.DB;
namespace NewPdaSqlServer.util
{
    using NewPdaSqlServer.DB;
using NewPdaSqlServer.entity;
using SqlSugar;
namespace NewPdaSqlServer.util;
    using System;
public class LogService : RepositoryNoEntity
{
@@ -15,8 +16,7 @@
    /// <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,12 +55,9 @@
    {
        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,
@@ -74,3 +71,6 @@
            });
    }
}
}