fix记录日志字符串过长问题

This commit is contained in:
不做码农
2022-05-10 13:27:11 +08:00
parent ac277c9230
commit 4bbaa9d029
2 changed files with 5 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ namespace ZR.Service.System
/// <param name="operLog">日志对象</param>
public void InsertOperlog(SysOperLog operLog)
{
if (operLog.operParam.Length >= 1000)
{
operLog.operParam = operLog.operParam.Substring(0, 1000);
}
sysOperLogRepository.AddSysOperLog(operLog);
}