feat: 操作日志模块(代码+SQL)

- 新增 @OperLog 注解,标记需记录的方法
- 新增 OperLogAspect AOP 切面,自动记录操作日志
- 新增 sys_oper_log 表结构
- 支持异步记录,不阻塞主流程
- application.yml 启用 @EnableAsync
This commit is contained in:
小蟑螂
2026-03-26 12:38:13 +08:00
parent eaa6de719e
commit d427fcfe7f
13 changed files with 543 additions and 302 deletions
@@ -3,8 +3,10 @@ package top.xyquan.ecomdmbbackend;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication
@EnableAsync
@MapperScan({
"top.xyquan.ecomdmbbackend.modules.*.mapper",
"top.xyquan.ecomdmbbackend.modules.*.*.mapper"