日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

OpenJWeb快速開發平臺組織結構繼承權限的實現

系統 2329 0

OpenJWeb快速開發平臺中實現了上級組織結構下的人員可獲得下級組織結構的權限,sql:

create or replace view v_user_auth as
--select distinct user_id,login_id,comm_code,auth_name,auth_resource from (
select a.user_id,a.login_id,b.comm_code,b.auth_name,b.auth_resource from
comm_user a,comm_auth b ,comm_user_auth c
where c.user_id = a.user_id
and c.auth_id = b.auth_id
union
select a.user_id,a.login_id,b.comm_code,b.auth_name,b.auth_resource from
comm_user a,comm_auth b , comm_user_role d,comm_role_auth e
where a.user_id = d.user_id
and d.role_id = e.role_id
and e.auth_id = b.auth_id

union


select a.user_id,a.login_id,b.comm_code,b.auth_name,b.auth_resource from (
select a.user_id,a.login_id,b.row_id row_id,b.tree_code from comm_user a,comm_dept b where a.dept_id=b.pk_id union
select a.user_id,c.login_id,a.org_id row_id,b.tree_code from comm_org_emp_rel a,comm_dept b,comm_user c where b.row_id = a.org_id and c.dept_id=b.pk_id) a,
(
select a.dept_id,c.auth_id,b.tree_code,c.comm_code ,c.auth_name,c.auth_resource from comm_dept_auth a,comm_dept b,comm_auth c where a.dept_id =b.row_id
and a.auth_id=c.auth_id) b
where? b.tree_code like a.tree_code ||'%'? ;

例如下級組織結構001001具有某功能的權限,則上級組織結構001則可獲得此功能的權限,如果用戶A屬于001部門,則

此用戶可獲得分配給001001組織的權限.使用spring security框架可以從這個視圖中獲取權限記錄.

OpenJWeb快速開發平臺組織結構繼承權限的實現


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!?。?/p>

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 兴海县| 辰溪县| 疏勒县| 睢宁县| 石楼县| 博兴县| 措勤县| 新乡市| 田林县| 高安市| 巴林左旗| 黑龙江省| 麟游县| 洞头县| 石渠县| 巫溪县| 牡丹江市| 扬中市| 武鸣县| 蛟河市| 石渠县| 眉山市| 南部县| 合川市| 宁乡县| 景洪市| 合阳县| 房产| 礼泉县| 商水县| 珠海市| 黎川县| 扶余县| 藁城市| 怀安县| 安徽省| 博白县| 石家庄市| 固始县| 阿鲁科尔沁旗| 平果县|