|
|
|
@ -58,11 +58,6 @@ namespace DS.WMS.PrintApi.Middleware
|
|
|
|
|
dbProvider.Ado.CommandTimeOut = 30;
|
|
|
|
|
dbProvider.Aop.OnLogExecuting = (sql, pars) =>
|
|
|
|
|
{
|
|
|
|
|
//执行前事件
|
|
|
|
|
//Logger.Log(LogLevel.Info,
|
|
|
|
|
// DateTime.Now.ToString() + "\r\n" +
|
|
|
|
|
// UtilMethods.GetSqlString(c.DbType, sql, pars));
|
|
|
|
|
|
|
|
|
|
string sqlStr = sql;
|
|
|
|
|
foreach (var item in pars)
|
|
|
|
|
{
|
|
|
|
@ -85,8 +80,7 @@ namespace DS.WMS.PrintApi.Middleware
|
|
|
|
|
sqlStr = sqlStr.Replace(item.ParameterName, strValue);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Console.WriteLine("configId:" + Environment.NewLine + configId);
|
|
|
|
|
//sqlStr = sqlStr.Replace('[', ' ').Replace(']', ' ');
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("执行的SQL:" + Environment.NewLine + sqlStr);
|
|
|
|
|
};
|
|
|
|
|
//数据处理事件
|
|
|
|
|