From df4d103b20207a8d904ab64f7dd736d356756091 Mon Sep 17 00:00:00 2001
From: wxy <14293288+zysysys@user.noreply.gitee.com>
Date: Fri, 24 May 2024 13:57:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/log/service/AsyncLogService.java | 29 +++++++
jing-ui/src/layout/components/AppMain.vue | 75 +++++++++++++++++++
2 files changed, 104 insertions(+)
create mode 100644 jing-common/jing-common-log/src/main/java/com/jing/common/log/service/AsyncLogService.java
create mode 100644 jing-ui/src/layout/components/AppMain.vue
diff --git a/jing-common/jing-common-log/src/main/java/com/jing/common/log/service/AsyncLogService.java b/jing-common/jing-common-log/src/main/java/com/jing/common/log/service/AsyncLogService.java
new file mode 100644
index 0000000..2ec587d
--- /dev/null
+++ b/jing-common/jing-common-log/src/main/java/com/jing/common/log/service/AsyncLogService.java
@@ -0,0 +1,29 @@
+package com.jing.common.log.service;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.stereotype.Service;
+import com.jing.common.core.constant.SecurityConstants;
+import com.jing.system.api.RemoteLogService;
+import com.jing.system.api.domain.SysOperLog;
+
+/**
+ * 异步调用日志服务
+ *
+ * @author ruoyi
+ */
+@Service
+public class AsyncLogService
+{
+ @Autowired
+ private RemoteLogService remoteLogService;
+
+ /**
+ * 保存系统日志记录
+ */
+ @Async
+ public void saveSysLog(SysOperLog sysOperLog) throws Exception
+ {
+ remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
+ }
+}
diff --git a/jing-ui/src/layout/components/AppMain.vue b/jing-ui/src/layout/components/AppMain.vue
new file mode 100644
index 0000000..a25c562
--- /dev/null
+++ b/jing-ui/src/layout/components/AppMain.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+