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

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

系統 2506 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元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 梅河口市| 关岭| 柳州市| 韶关市| 延寿县| 宁国市| 枝江市| 江达县| 南雄市| 奉化市| 吉水县| 大同市| 合阳县| 德州市| 湟中县| 武宣县| 沙河市| 永城市| 正蓝旗| 扎囊县| 曲松县| 诸暨市| 浦县| 盐池县| 北川| 宁德市| 年辖:市辖区| 临澧县| 凉山| 察隅县| 祁连县| 崇信县| 亚东县| 玉环县| 兴隆县| 锦屏县| 古丈县| 鸡泽县| 泰宁县| 滦南县| 遵义县|