人员账号所属权限模块

select distinct

a.编码 as 部门编号,

a.名称 部门,

B.编号 as 人员编号,

b.姓名,

d.用户名,

substr(t.角色, 4, 20) as 角色,t.标题, t.说明,t.功能

from 部门表 a,

人员表 b,

部门人员 c,

上机人员表 d,

dba_role_privs e,

dba_roles f,

(select g.角色, h.序号, h.标题, h.说明, h.系统,G.功能

from (select distinct 系统, 序号, 角色,功能 from zltools.zlrolegrant) g,

zltools.zlprograms h

where g.序号 = h.序号

and h.系统 is not null) t

where e.granted_role = f.role

and f.role like '%ZL_%'

and a.id = c.部门id

and b.id = c.人员id

and b.id = d.人员id

and e.grantee = d.用户名

and f.role = t.角色

and C.缺省=1

And C.部门ID /*B0*/is not null/*E0*/

order by 部门编号,人员编号

相关推荐
AI多Agent协作实战派2 分钟前
AI多Agent协作系统实战(二十八):顶栏统一战争——从1个页面异常到31个页面全量对齐
数据库·人工智能·uni-app
吴声子夜歌3 分钟前
MongoDB 8.0——可视化管理工具
数据库·mongodb
zdl68614 分钟前
EasyMarkets:“芯片波动考验科技估值”
数据库·人工智能·科技
翼龙云_cloud38 分钟前
阿里云国际站代理商:ECS弹性伸缩 自动应对流量高峰
运维·网络·数据库·阿里云·架构
吴声子夜歌39 分钟前
MongoDB 4.2——安装 MongoDB
数据库·mongodb
吴声子夜歌42 分钟前
MongoDB 8.0——MongoDB的安装
数据库·mongodb
韭菜炒鸡肝天1 小时前
Django模型迁移指南:从命令用法到最佳实践
数据库·django·sqlite
鹿鸣天涯1 小时前
应急响应:MySQL日志分析
mysql·安全·adb·oracle
阿维的博客日记2 小时前
Java事务传播级别REQUIRES_NEW,REQUIRED_NEW区别
java·数据库·事务
toooooop813 小时前
如何用 ss + ps 精准定位本机 Redis 的“隐形”消费者?
linux·数据库·redis·缓存