update 优化 编译警告问题 替换过期方法与类

This commit is contained in:
疯狂的狮子Li
2025-01-17 11:52:18 +08:00
parent 82b9a69231
commit 3bdb837196
5 changed files with 12 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ public class LogAspect {
// 设置消耗时间
StopWatch stopWatch = KEY_CACHE.get();
stopWatch.stop();
operLog.setCostTime(stopWatch.getTime());
operLog.setCostTime(stopWatch.getDuration().toMillis());
// 发布事件保存数据库
SpringUtils.context().publishEvent(operLog);
} catch (Exception exp) {