admin/sql/fix_data_perm_audit_menu.sql
zzh c442833d9c feat(数据权限): 实现 P1 后端 API、有效范围合并与订单列表集成
- 新增 DataPerm 模块(配置 CRUD、模板、字段脱敏、变更/访问日志 API)及 SQL 脚本
- 订单列表/导出接入 EffectiveScopeBuilder 五维数据权限过滤
- 修复集成测试 JSON 反序列化与 RBAC 用户名解析;新增 DataPerm API 集成测试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 10:27:37 +08:00

11 lines
445 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 数据权限审计菜单:accessLog → audit(与前端路由一致)
-- 若未执行过旧 seed 可跳过;已存在错误 Route/Component 时执行本脚本
UPDATE `menu`
SET
`Route` = '/system/dataPerm/audit',
`Component` = 'views/system/dataPerm/audit/index',
`UpdateTime` = NOW()
WHERE `Id` = 'dp100001-0000-4000-8000-000000000004'
OR (`Route` = '/system/dataPerm/accessLog' AND `PermissionCode` = 'Rbac.DataPerm.Audit');