From edfa49f201d3fc8fc6b51b700e91f80246660855 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 13 二月 2024 20:29:14 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java index 8af863f..54ac18f 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java @@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletResponse; import java.lang.reflect.Method; import java.util.Collections; +import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -68,6 +69,7 @@ private void saveLog(JoinPoint joinPoint, Object result, Exception e) { OperationRecord record = new OperationRecord(); Long endTime = startTime.get(); + record.setCreateTime(new Date()); // 璁板綍鎿嶄綔鑰楁椂 if (endTime != null) { record.setSpendTime((int) (System.currentTimeMillis() - endTime)); @@ -115,7 +117,7 @@ } } } - operationRecordService.save(record); + operationRecordService.saveAsync(record); } /** -- Gitblit v1.9.1