人员账号所属权限模块

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 部门编号,人员编号

相关推荐
Bdygsl5 分钟前
MySQL(2)—— CRUD
数据库·mysql
chushiyunen10 分钟前
python edge-tts实现tts文本转语音、音频
数据库·python·音视频
原来是猿15 分钟前
MySQL【事务中 - 事务的隔离级别】
数据库·mysql
2501_9454235427 分钟前
游戏与图形界面(GUI)
jvm·数据库·python
大傻^27 分钟前
Spring AI Alibaba Agent开发:基于ChatClient的智能体构建模式
java·数据库·人工智能·后端·spring·springaialibaba
爬山算法30 分钟前
MongoDB(50)副本集中的角色有哪些?
数据库·mongodb
大傻^43 分钟前
Spring AI Alibaba 向量数据库集成:Milvus与Elasticsearch配置详解
数据库·人工智能·spring·elasticsearch·milvus·springai·springaialibaba
redsea_HR1 小时前
红海eHR解决方案背后的底层能力
大数据·数据库·人工智能
ba_pi1 小时前
每天写点什么2026-03-19-Doris三种存储模型
java·数据库·mysql
oem1101 小时前
Python Web爬虫入门:使用Requests和BeautifulSoup
jvm·数据库·python