Sfoglia il codice sorgente

软件权限一览表:多个分支逻辑不一致问题修复

ZhuJiaHao 3 settimane fa
parent
commit
a1150c585f

+ 8 - 0
ibps-model-root/modules/org-model/src/main/resources/com/lc/ibps/org/party/persistence/mapping/PartyRoleProvider.map.xml

@@ -80,6 +80,10 @@
                         SELECT 1
                         FROM ibps_auth_res m
                         WHERE m.NAME_ LIKE CONCAT('%',#{name},'%')
+                        AND m.ID_ NOT IN (
+                            select ID_ from IBPS_AUTH_RES 
+                            where PATH_ LIKE CONCAT('%', (select ID_ from IBPS_AUTH_RES where NAME_ = '系统管理' limit 1), '%')
+                        )
                         AND (
                             r.PATH_ LIKE CONCAT('%', m.ID_, '%')
                             OR
@@ -236,6 +240,10 @@
         DISPLAY_IN_MENU_ AS displayInMenu
         FROM IBPS_AUTH_RES
         WHERE DISPLAY_IN_MENU_ = 'Y'
+        AND ID_ NOT IN (
+            select ID_ from IBPS_AUTH_RES 
+            where PATH_ LIKE CONCAT('%', (select ID_ from IBPS_AUTH_RES where NAME_ = '系统管理' limit 1), '%')
+        )
     </select>