puzhibing
2026-02-03 9d1b49a4456c58ad1c3e41d89f46a2f4505369fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.xiaopeng.common.log.service;
 
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import com.xiaopeng.common.core.constant.SecurityConstants;
 
import javax.annotation.Resource;
 
/**
 * 异步调用日志服务
 * 
 * @author xiaopeng
 */
@Service
public class AsyncLogService {
    @Resource
    private RemoteLogService remoteLogService;
 
    /**
     * 保存系统日志记录
     */
    @Async
    public void saveSysLog(SysOperLog sysOperLog) throws Exception {
        remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
    }
}