Explorar el Código

查询系统时,排除sysmanage

shenjingwei hace 3 meses
padre
commit
8c00612d9d

+ 1 - 1
src/custom/restcontroller/sale/role/SQL/可授权系统查询.sql

@@ -3,4 +3,4 @@ inner join sys_systemapp t2 on t1.systemappid = t2.systemappid and t2.isused=1
 inner join sys_systemmodule t3 on t2.systemmoduleid=t3.systemmoduleid and t3.isused=1
 inner join sys_systemclient t4 on t3.systemclientid = t4.systemclientid and t4.isused=1
 inner join sys_system t5 on t4.systemid = t5.systemid and t5.isused=1
-where t1.roleid in $leaderroleids$
+where t5.`system` not in ('sysmanage') and t1.roleid in $leaderroleids$

+ 1 - 1
src/custom/restcontroller/sale/role/SQL/商户角色详情查询_授权应用.sql

@@ -14,5 +14,5 @@ from sys_system t1
          inner join sys_systemclient t2 on t1.systemid = t2.systemid and t2.isused = 1
          inner join sys_systemmodule t3 on t2.systemclientid = t3.systemclientid and t3.isused = 1
          inner join sys_systemapp t4 on t3.systemmoduleid = t4.systemmoduleid and t4.isused = 1
-where t1.isused = 1
+where t1.isused = 1  and t1.`system` not in ('sysmanage')
   and exists(select optionid from sys_roleappoptionauth where systemappid = t4.systemappid and roleid = $roleid$)

+ 1 - 1
src/custom/restcontroller/system/payorder/SQL/查询系统模块列表.sql

@@ -7,5 +7,5 @@ from sys_systemapp t1
          INNER JOIN sys_systemmodule t2 ON t2.systemmoduleid = t1.systemmoduleid
          INNER JOIN sys_systemclient t3 ON t3.systemclientid = t2.systemclientid
          INNER JOIN sys_system t4 ON t4.systemid=t3.systemid
-WHERE t1.isused = 1
+WHERE t1.isused = 1 and t4.`system` not in ('sysmanage')
   and t1.systemappid in $systemappid$

+ 1 - 1
src/custom/restcontroller/system/payorder/SQL/获取角色系统授权.sql

@@ -4,5 +4,5 @@ select distinct t6.systemid,t6.system,t6.systemname from sys_roleappoptionauth t
                                                              inner join sys_systemmodule t4 on t3.systemmoduleid = t4.systemmoduleid and t4.isused=1
                                                              inner join sys_systemclient t5 on t4.systemclientid = t5.systemclientid and t5.isused=1
                                                              inner join sys_system t6 on t5.systemid = t6.systemid and t6.isused=1
-where t5.systemclient=$systemclient$ and
+where t5.systemclient=$systemclient$ and t6.`system` not in ('sysmanage') and
     exists(select * from sys_userrole where roleid=t1.roleid and userid=$userid$ and siteid=$siteid$)

+ 1 - 1
src/custom/restcontroller/webmanage/role/SQL/应用授权选择.sql

@@ -3,6 +3,6 @@ from sys_system t1
          inner join sys_systemclient t2 on t1.systemid = t2.systemid and t2.isused = 1
          inner join sys_systemmodule t3 on t2.systemclientid = t3.systemclientid and t3.isused = 1
          inner join sys_systemapp t4 on t3.systemmoduleid = t4.systemmoduleid and t4.isused = 1 and t4.isneedauth = 1
-where t1.isused = 1
+where t1.isused = 1 and t1.`system` not in ('sysmanage')
   and $where$
   and exists(select optionid from sys_systemapp_options where systemappid = t4.systemappid)

+ 1 - 1
src/custom/restcontroller/webmanage/role/SQL/角色详情查询_授权应用.sql

@@ -14,6 +14,6 @@ from sys_system t1
          inner join sys_systemclient t2 on t1.systemid = t2.systemid and t2.isused = 1
          inner join sys_systemmodule t3 on t2.systemclientid = t3.systemclientid and t3.isused = 1
          inner join sys_systemapp t4 on t3.systemmoduleid = t4.systemmoduleid and t4.isused = 1
-where t1.isused = 1
+where t1.isused = 1 and t1.`system` not in ('sysmanage')
   and exists(select optionid from sys_roleappoptionauth where systemappid = t4.systemappid and roleid = $roleid$)
   and $where$

+ 1 - 0
src/custom/restcontroller/webmanage/role/role.java

@@ -231,6 +231,7 @@ public class role extends Controller {
         querySQL.addJoinTable(JOINTYPE.inner, "sys_systemclient", "t2", "t1.systemid = t2.systemid and t2.isused = 1", "systemclientname");
         querySQL.addJoinTable(JOINTYPE.inner, "sys_systemmodule", "t3", "t2.systemclientid = t3.systemclientid and t3.isused = 1", "systemmodulename");
         querySQL.addJoinTable(JOINTYPE.inner, "sys_systemapp", "t4", "t3.systemmoduleid = t4.systemmoduleid and t4.isused = 1 and t4.isneedauth = 1", "systemappid", "systemappname", "remarks");
+        querySQL.setWhere("t1.`system`", Op.NOT_IN, "sysmanage");
         querySQL.setWhere("t1.isused = 1");
         querySQL.setWhere("exists(select optionid from sys_systemapp_options where systemappid = t4.systemappid)");
         querySQL.setWhere(where.toString());