feat(log): 添加页面路由记录功能到操作日志

- 在 OperLogEvent 中新增 operPage 字段用于存储页面路由信息
- 在 SysOperLog 实体类中添加 operPage 属性并配置 Excel 导出
- 修改 LogAspect 切面类从请求头获取 X-Page-Route 并设置到操作日志
- 在前端请求拦截器中添加当前路由路径到请求头 X-Page-Route
- 更新 SysOperLogMapper.xml 映射文件包含 operPage 字段映射
This commit is contained in:
2026-07-08 14:35:50 +08:00
parent c87418e4ba
commit a95bdb5d57
5 changed files with 19 additions and 0 deletions

View File

@@ -96,6 +96,11 @@ public class OperLogEvent implements Serializable {
*/
private String errorMsg;
/**
* 页面路由
*/
private String operPage;
/**
* 操作时间
*/