Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
15所TongWeb
aserver
Commits
6d9a67ab
Commit
6d9a67ab
authored
Nov 23, 2020
by
杨日斐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aserver 菜单栏什么都不显示。
parent
b4b69e59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
318 additions
and
307 deletions
+318
-307
MenuController.java
...n/java/com/archser/aserver/controller/MenuController.java
+7
-2
oracle.sql
src/main/resources/oracle.sql
+311
-305
No files found.
src/main/java/com/archser/aserver/controller/MenuController.java
View file @
6d9a67ab
...
@@ -179,8 +179,13 @@ public class MenuController extends Controller {
...
@@ -179,8 +179,13 @@ public class MenuController extends Controller {
public
void
getMenuGroup
()
{
public
void
getMenuGroup
()
{
Integer
userId
=
Db
.
queryInt
(
Db
.
getSql
(
"getUserId"
),
this
.
getAttrForStr
(
"username"
));
Integer
userId
=
Db
.
queryInt
(
Db
.
getSql
(
"getUserId"
),
this
.
getAttrForStr
(
"username"
));
// 所有菜单
String
userName
=
this
.
getAttrForStr
(
"username"
);
List
<
Menu
>
allMenuList
=
new
Menu
().
dao
().
template
(
"getMenuGroup"
,
Kv
.
by
(
"userId"
,
userId
)).
find
();
List
<
Menu
>
allMenuList
=
null
;
if
(
"admin"
.
equals
(
userName
))
{
allMenuList
=
new
Menu
().
dao
().
template
(
"getMenuAll"
).
find
();
}
else
{
allMenuList
=
new
Menu
().
dao
().
template
(
"getMenuGroup"
,
Kv
.
by
(
"userId"
,
userId
)).
find
();
}
List
<
System
>
systems
=
System
.
dao
.
template
(
"getSystems"
).
find
();
List
<
System
>
systems
=
System
.
dao
.
template
(
"getSystems"
).
find
();
Map
<
Integer
,
System
>
systemMap
=
systems
.
stream
().
collect
(
Collectors
.
toMap
(
System:
:
getId
,
System
->
System
));
Map
<
Integer
,
System
>
systemMap
=
systems
.
stream
().
collect
(
Collectors
.
toMap
(
System:
:
getId
,
System
->
System
));
List
<
MenuStar
>
stars
=
MenuStar
.
dao
.
template
(
"getMenuStar"
,
userId
).
find
();
List
<
MenuStar
>
stars
=
MenuStar
.
dao
.
template
(
"getMenuStar"
,
userId
).
find
();
...
...
src/main/resources/oracle.sql
View file @
6d9a67ab
###
SQL
模板
###
SQL
模板
###
获取指定名称的配置
###
获取指定名称的配置
#
sql
(
"getConfigByName"
)
#
sql
(
"getConfigByName"
)
select
val
from
AS_CONFIG
where
NAME
=?
select
val
from
AS_CONFIG
where
NAME
=?
#
end
#
end
###
根据
SysId
获取菜单列表
###
根据
SysId
获取菜单列表
#
sql
(
"getMenuListBySysId"
)
#
sql
(
"getMenuListBySysId"
)
select
*
from
as_menu
where
system_id
=#
(
sysId
)
select
*
from
as_menu
where
system_id
=#
(
sysId
)
#
if
(
condStr
)
#
if
(
condStr
)
and
#
(
condStr
)
and
#
(
condStr
)
#
end
#
end
#
end
#
end
###
获取指定用户
###
获取指定用户
#
sql
(
"getUserByUsername"
)
#
sql
(
"getUserByUsername"
)
select
*
from
AS_USER
where
USERNAME
=#
para
(
0
)
select
*
from
AS_USER
where
USERNAME
=#
para
(
0
)
#
end
#
end
###
删除菜单数据
###
删除菜单数据
#
sql
(
"deleteMenuByIds"
)
#
sql
(
"deleteMenuByIds"
)
delete
as_menu
where
id
in
(
delete
as_menu
where
id
in
(
#
for
(
item
:
ids
)
#
for
(
item
:
ids
)
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
end
#
end
)
)
#
end
#
end
###
删除菜单权限表数据
###
删除菜单权限表数据
#
sql
(
"deleteRoleMenuByIds"
)
#
sql
(
"deleteRoleMenuByIds"
)
delete
as_role_menu
where
menu_id
in
(
delete
as_role_menu
where
menu_id
in
(
#
for
(
item
:
ids
)
#
for
(
item
:
ids
)
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
end
#
end
)
)
#
end
#
end
###
获取系统,应用菜单使用
###
获取系统,应用菜单使用
#
sql
(
"getSystems"
)
#
sql
(
"getSystems"
)
select
ID
,
NAME
,
TITLE
,
TYPE
,
URL
,
DESCRIPTION
from
AS_SYSTEM
order
by
ID
select
ID
,
NAME
,
TITLE
,
TYPE
,
URL
,
DESCRIPTION
from
AS_SYSTEM
order
by
ID
#
end
#
end
###
获取系统
###
获取系统
#
sql
(
"findSystemList"
)
#
sql
(
"findSystemList"
)
select
*
from
AS_SYSTEM
t
select
*
from
AS_SYSTEM
t
#
if
(
searchText
!=
null
&&
searchText
!=
""
&&
searchText
!=
"null"
)
#
if
(
searchText
!=
null
&&
searchText
!=
""
&&
searchText
!=
"null"
)
where
t
.
name
like
#
para
(
searchText
)
where
t
.
name
like
#
para
(
searchText
)
or
t
.
title
like
#
para
(
searchText
)
or
t
.
title
like
#
para
(
searchText
)
or
t
.
service
like
#
para
(
searchText
)
or
t
.
service
like
#
para
(
searchText
)
or
t
.
url
like
#
para
(
searchText
)
or
t
.
url
like
#
para
(
searchText
)
or
t
.
description
like
#
para
(
searchText
)
or
t
.
description
like
#
para
(
searchText
)
or
t
.
type
like
#
para
(
searchText
)
or
t
.
type
like
#
para
(
searchText
)
#
end
#
end
#
end
#
end
#
sql
(
"findConfigList"
)
#
sql
(
"findConfigList"
)
select
*
from
AS_CONFIG
AC
select
*
from
AS_CONFIG
AC
#
if
(
searchText
!=
null
&&
searchText
!=
""
&&
searchText
!=
"null"
)
#
if
(
searchText
!=
null
&&
searchText
!=
""
&&
searchText
!=
"null"
)
where
#
(
searchText
)
where
#
(
searchText
)
#
end
#
end
#
end
#
end
###
获取加星菜单
###
获取加星菜单
#
sql
(
"getMenuStar"
)
#
sql
(
"getMenuStar"
)
select
*
from
AS_MENU_STAR
where
USER_ID
=#
para
(
0
)
select
*
from
AS_MENU_STAR
where
USER_ID
=#
para
(
0
)
#
end
#
end
###
获取用户
###
超级用户所有菜单
#
sql
(
"getUserId"
)
#
sql
(
"getMenuAll"
)
select
ID
from
AS_USER
where
USERNAME
=?
and
rownum
=
1
select
*
from
AS_MENU
order
by
GROUP_ORDER
DESC
;
#
end
#
end
###
删除加星菜单
###
获取用户
#
sql
(
"deleteMenuStar"
)
#
sql
(
"getUserId"
)
delete
from
AS_MENU_STAR
where
USER_ID
=#
para
(
userId
)
and
MENU_ID
=#
para
(
menuId
)
select
ID
from
AS_USER
where
USERNAME
=?
and
rownum
=
1
#
end
#
end
###
获取指定用户
###
删除加星菜单
#
sql
(
"getUser"
)
#
sql
(
"deleteMenuStar"
)
select
*
from
AS_USER
where
"USERNAME"
=#
para
(
0
)
delete
from
AS_MENU_STAR
where
USER_ID
=#
para
(
userId
)
and
MENU_ID
=#
para
(
menuId
)
#
end
#
end
###
获取指定系统私钥
###
获取指定用户
#
sql
(
"getSystemPrivatekey"
)
#
sql
(
"getUser"
)
select
"TYPE"
,
KEYID
,
PRIVATEKEY
,
URL
,
TITLE
from
AS_SYSTEM
where
"NAME"
=#
para
(
0
)
and
rownum
=
1
select
*
from
AS_USER
where
"USERNAME"
=#
para
(
0
)
#
end
#
end
###
获取所有菜单
###
获取指定系统私钥
#
sql
(
"getMenus"
)
#
sql
(
"getSystemPrivatekey"
)
select
*
from
AS_MENU
order
by
ID
select
"TYPE"
,
KEYID
,
PRIVATEKEY
,
URL
,
TITLE
from
AS_SYSTEM
where
"NAME"
=#
para
(
0
)
and
rownum
=
1
#
end
#
end
###
获取用户权限应用菜单
###
获取所有菜单
#
sql
(
"getMenusByUser"
)
#
sql
(
"getMenus"
)
select
*
from
AS_MENU
where
ID
in
(
select
*
from
AS_MENU
order
by
ID
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
#
end
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
)
###
获取用户权限应用菜单
)
order
by
GROUP_ORDER
DESC
;
#
sql
(
"getMenusByUser"
)
#
end
select
*
from
AS_MENU
where
ID
in
(
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
###
查询用户是否有指定菜单权限
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
#
sql
(
"findMenuIdByNameAndUserId"
)
)
select
menu_id
)
order
by
GROUP_ORDER
DESC
;
from
as_role_menu
#
end
where
role_id
in
(
select
r
.
id
from
as_role
r
,
as_role_user
ru
###
查询用户是否有指定菜单权限
where
r
.
id
=
ru
.
role_id
#
sql
(
"findMenuIdByNameAndUserId"
)
and
ru
.
user_id
=
#
para
(
userId
))
select
menu_id
and
menu_id
=
(
select
id
from
as_menu
m
where
m
.
name
=
#
para
(
menuName
))
from
as_role_menu
#
end
where
role_id
in
(
select
r
.
id
from
as_role
r
,
as_role_user
ru
###
查询菜单根据用户
id
和系统
type
和菜单名称
where
r
.
id
=
ru
.
role_id
#
sql
(
"findMenuByUserSystemAndName"
)
and
ru
.
user_id
=
#
para
(
userId
))
select
menu_id
and
menu_id
=
(
select
id
from
as_menu
m
where
m
.
name
=
#
para
(
menuName
))
from
as_role_menu
#
end
where
role_id
in
(
select
r
.
id
from
as_role
r
,
as_role_user
ru
###
查询菜单根据用户
id
和系统
type
和菜单名称
where
r
.
id
=
ru
.
role_id
#
sql
(
"findMenuByUserSystemAndName"
)
and
ru
.
user_id
=
#
para
(
userId
))
select
menu_id
and
menu_id
in
from
as_role_menu
(
select
id
where
role_id
in
(
select
r
.
id
from
as_menu
m
from
as_role
r
,
as_role_user
ru
where
m
.
system_id
in
where
r
.
id
=
ru
.
role_id
(
select
id
from
as_system
sys
where
sys
.
type
=
#
para
(
systemType
))
and
ru
.
user_id
=
#
para
(
userId
))
and
m
.
name
=
#
para
(
menuName
))
and
menu_id
in
#
end
(
select
id
from
as_menu
m
#
sql
(
"findMenuAndSystemIfUserHasRole"
)
where
m
.
system_id
in
select
m
.
id
as
menu_id
,
sys
.
title
as
system
(
select
id
from
as_system
sys
where
sys
.
type
=
#
para
(
systemType
))
from
as_menu
m
and
m
.
name
=
#
para
(
menuName
))
inner
join
as_system
sys
#
end
on
m
.
system_id
=
sys
.
id
where
sys
.
type
=
#
para
(
systemType
)
#
sql
(
"findMenuAndSystemIfUserHasRole"
)
and
m
.
name
=
#
para
(
menuName
)
select
m
.
id
as
menu_id
,
sys
.
title
as
system
and
exists
from
as_menu
m
(
select
menu_id
inner
join
as_system
sys
from
as_role_menu
on
m
.
system_id
=
sys
.
id
where
menu_id
=
m
.
id
where
sys
.
type
=
#
para
(
systemType
)
and
role_id
in
(
select
r
.
id
and
m
.
name
=
#
para
(
menuName
)
from
as_role
r
,
as_role_user
ru
and
exists
where
r
.
id
=
ru
.
role_id
(
select
menu_id
and
ru
.
user_id
=
#
para
(
userId
))
from
as_role_menu
)
where
menu_id
=
m
.
id
#
end
and
role_id
in
(
select
r
.
id
from
as_role
r
,
as_role_user
ru
#
sql
(
"findMenuBySystemType"
)
where
r
.
id
=
ru
.
role_id
select
menu_id
and
ru
.
user_id
=
#
para
(
userId
))
from
as_role_menu
)
where
role_id
in
(
select
r
.
id
#
end
from
as_role
r
,
as_role_user
ru
where
r
.
id
=
ru
.
role_id
#
sql
(
"findMenuBySystemType"
)
and
ru
.
user_id
=
#
para
(
userId
))
select
menu_id
and
menu_id
in
from
as_role_menu
(
select
id
where
role_id
in
(
select
r
.
id
from
as_menu
m
from
as_role
r
,
as_role_user
ru
where
m
.
system_id
in
where
r
.
id
=
ru
.
role_id
(
select
id
from
as_system
sys
where
sys
.
type
=
#
para
(
systemType
))
and
ru
.
user_id
=
#
para
(
userId
))
)
and
menu_id
in
#
end
(
select
id
from
as_menu
m
#
sql
(
"findSystemWithUserPermission"
)
where
m
.
system_id
in
select
sys
.
*
from
as_system
sys
(
select
id
from
as_system
sys
where
sys
.
type
=
#
para
(
systemType
))
where
sys
.
id
in
(
)
select
m
.
system_id
from
as_menu
m
#
end
where
m
.
id
in
(
select
rm
.
menu_id
from
as_role_menu
rm
#
sql
(
"findSystemWithUserPermission"
)
where
rm
.
role_id
in
(
select
sys
.
*
from
as_system
sys
select
role_id
from
as_role_user
ru
where
sys
.
id
in
(
where
ru
.
user_id
=
#
para
(
userId
)
select
m
.
system_id
from
as_menu
m
)
where
m
.
id
in
(
)
select
rm
.
menu_id
from
as_role_menu
rm
group
by
m
.
system_id
where
rm
.
role_id
in
(
)
select
role_id
from
as_role_user
ru
#
end
where
ru
.
user_id
=
#
para
(
userId
)
)
)
###
获取调试信息日志
group
by
m
.
system_id
#
sql
(
"getLogs"
)
)
select
ag
.
ID
,
CODE
,
TYPE
,
CONTENT
,
URL
,
au
.
USERNAME
,
CREATE_TIME
as
TIME
#
end
from
AS_LOG
ag
,
as_user
au
where
#
(
condition
)
and
ag
.
type
=
'ajax'
AND
ag
.
user_id
=
au
.
id
order
by
ag
.
ID
desc
#
end
###
获取调试信息日志
#
sql
(
"getLogs"
)
###
获取用户角色关系
select
ag
.
ID
,
CODE
,
TYPE
,
CONTENT
,
URL
,
au
.
USERNAME
,
CREATE_TIME
as
TIME
#
sql
(
"getRole"
)
from
AS_LOG
ag
,
as_user
au
where
#
(
condition
)
and
ag
.
type
=
'ajax'
AND
ag
.
user_id
=
au
.
id
order
by
ag
.
ID
desc
SELECT
*
from
AS_ROLE
where
ID
in
(
#
end
#
for
(
item
:
ids
)
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
end
###
获取用户角色关系
)
#
sql
(
"getRole"
)
#
end
SELECT
*
from
AS_ROLE
where
ID
in
(
#
for
(
item
:
ids
)
###
拥有三员角色的用户数
#
(
for
.
index
==
0
?
""
:
","
)
#
(
item
)
#
sql
(
"hasThreeMemberUsersCount"
)
#
end
select
count
(
id
)
from
as_role_user
where
role_id
in
(
select
id
from
as_role
where
name
=
'Sysadmin'
or
name
=
'Secadmin'
or
name
=
'Audadmin'
)
)
#
end
#
end
###
用户拥有的非锁定的角色个数
###
拥有三员角色的用户数
#
sql
(
"hasNoLockedRolesCount"
)
#
sql
(
"hasThreeMemberUsersCount"
)
select
count
(
id
)
from
as_role
where
id
in
(
select
role_id
from
as_role_user
where
user_id
=
(
select
id
from
as_user
where
username
=?
))
and
locked
=
'N'
select
count
(
id
)
from
as_role_user
where
role_id
in
(
select
id
from
as_role
where
name
=
'Sysadmin'
or
name
=
'Secadmin'
or
name
=
'Audadmin'
)
#
end
#
end
###
查询访问的系统名称
###
用户拥有的非锁定的角色个数
#
sql
(
"findSystemTitleByType"
)
#
sql
(
"hasNoLockedRolesCount"
)
select
title
from
as_system
where
"TYPE"
=?
and
rownum
=
1
select
count
(
id
)
from
as_role
where
id
in
(
select
role_id
from
as_role_user
where
user_id
=
(
select
id
from
as_user
where
username
=?
))
and
locked
=
'N'
#
end
#
end
###
查询错误次数
###
查询访问的系统名称
#
sql
(
"getErrorCount"
)
#
sql
(
"findSystemTitleByType"
)
select
decode
(
trunc
(
last_login_time
),
trunc
(
sysdate
),
select
title
from
as_system
where
"TYPE"
=?
and
rownum
=
1
case
when
(
sysdate
-
last_login_time
)
*
24
>
#
para
(
hour
)
and
errorcount
>=
#
para
(
permitLoginTimes
)
#
end
then
1
else
errorcount
end
,
###
查询错误次数
1
)
"flag"
#
sql
(
"getErrorCount"
)
from
as_user
select
decode
(
trunc
(
last_login_time
),
trunc
(
sysdate
),
where
id
=#
para
(
id
)
case
when
(
sysdate
-
last_login_time
)
*
24
>
#
para
(
hour
)
and
errorcount
>=
#
para
(
permitLoginTimes
)
#
end
then
1
else
errorcount
end
,
###
更改错误次数和最后登录时间
1
)
"flag"
#
sql
(
"updateForErr"
)
from
as_user
update
as_user
where
id
=#
para
(
id
)
set
errorcount
=
decode
(
trunc
(
last_login_time
),
trunc
(
sysdate
),
#
end
case
when
(
sysdate
-
last_login_time
)
*
24
>
#
para
(
hour
)
and
errorcount
>=
#
para
(
permitLoginTimes
)
###
更改错误次数和最后登录时间
then
1
#
sql
(
"updateForErr"
)
else
errorcount
+
1
end
,
update
as_user
1
),
set
errorcount
=
decode
(
trunc
(
last_login_time
),
trunc
(
sysdate
),
last_login_time
=
sysdate
case
when
(
sysdate
-
last_login_time
)
*
24
>
#
para
(
hour
)
where
id
=#
para
(
id
)
and
errorcount
>=
#
para
(
permitLoginTimes
)
#
end
then
1
else
errorcount
+
1
end
,
###
当密码正确时查询错误次数
1
),
###
xiaoying
20200406
缺陷
YZJ
-
2598
修改登录成功问题
last_login_time
=
sysdate
#
sql
(
"checkWhenPwdOk"
)
where
id
=#
para
(
id
)
select
case
#
end
when
trunc
(
last_login_time
)
!=
trunc
(
sysdate
)
then
0
###
当密码正确时查询错误次数
when
#
(
hour
)
/
24
<
sysdate
-
last_login_time
and
errorcount
>=
#
(
permitLoginTimes
)
then
###
xiaoying
20200406
缺陷
YZJ
-
2598
修改登录成功问题
errorcount
#
sql
(
"checkWhenPwdOk"
)
else
select
case
0
when
trunc
(
last_login_time
)
!=
trunc
(
sysdate
)
then
end
"flag"
0
from
as_user
when
#
(
hour
)
/
24
<
sysdate
-
last_login_time
and
errorcount
>=
#
(
permitLoginTimes
)
then
where
id
=#
(
id
)
errorcount
#
end
else
0
###
通过
keyId
得到密钥
end
"flag"
#
sql
(
"getPublickeyByKeyId"
)
from
as_user
select
publickey
from
as_system
where
keyid
=?
and
rownum
=
1
where
id
=#
(
id
)
#
end
#
end
###
错误次数清零
###
通过
keyId
得到密钥
#
sql
(
"updateForOk"
)
#
sql
(
"getPublickeyByKeyId"
)
update
as_user
select
publickey
from
as_system
where
keyid
=?
and
rownum
=
1
set
errorcount
=
0
,
#
end
last_login_time
=
sysdate
where
id
=#
(
id
)
###
错误次数清零
and
errorcount
!=
0
#
sql
(
"updateForOk"
)
#
end
update
as_user
set
errorcount
=
0
,
--修改密码
last_login_time
=
sysdate
#
sql
(
"updatePassword"
)
where
id
=#
(
id
)
UPDATE
AS_USER
set
PASSWORD
=
?
WHERE
USERNAME
=
?
and
errorcount
!=
0
#
end
#
end
--修改密码
##
根据用户
ID
查询角色
#
sql
(
"updatePassword"
)
#
sql
(
"getRolesByUserId"
)
UPDATE
AS_USER
set
PASSWORD
=
?
WHERE
USERNAME
=
?
select
ROLE_ID
from
AS_ROLE_USER
WHERE
USER_ID
=
?
#
end
#
end
###
获取用户信息通过
personCode
##
根据用户
ID
查询角色
#
sql
(
"getUserByPersonCode"
)
#
sql
(
"getRolesByUserId"
)
select
*
from
AS_USER
where
DC_PERSONCODE
=
#
para
(
personCode
)
select
ROLE_ID
from
AS_ROLE_USER
WHERE
USER_ID
=
?
#
end
#
end
###
更新配置表的值
#
sql
(
"updateConfigVal"
)
###
获取用户信息通过
personCode
UPDATE
AS_CONFIG
set
VAL
=
?
WHERE
NAME
=
?
#
sql
(
"getUserByPersonCode"
)
#
end
select
*
from
AS_USER
where
DC_PERSONCODE
=
#
para
(
personCode
)
#
end
###
根据用户
id
和系统
Id
查找菜单
xiaoying
20200414
YZJ
-
2725
隐藏菜单无法登录问题
###
更新配置表的值
#
sql
(
"findMenuByUserIdAndSysId"
)
#
sql
(
"updateConfigVal"
)
select
*
from
AS_MENU
where
ID
in
(
UPDATE
AS_CONFIG
set
VAL
=
?
WHERE
NAME
=
?
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
#
end
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
)
###
根据用户
id
和系统
Id
查找菜单
xiaoying
20200414
YZJ
-
2725
隐藏菜单无法登录问题
)
and
system_id
=#
para
(
systemId
)
order
by
ID
#
sql
(
"findMenuByUserIdAndSysId"
)
#
end
select
*
from
AS_MENU
where
ID
in
(
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
###
获取三级菜单
)
#
sql
(
"getMenuGroup"
)
)
and
system_id
=#
para
(
systemId
)
order
by
ID
select
*
from
AS_MENU
where
ID
in
(
#
end
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
)
###
获取三级菜单
)
order
by
GROUP_ORDER
DESC
;
#
sql
(
"getMenuGroup"
)
#
end
select
*
from
AS_MENU
where
ID
in
(
select
MENU_ID
from
AS_ROLE_MENU
where
ROLE_ID
in
(
select
r
.
ID
from
AS_ROLE
r
,
AS_ROLE_USER
ru
where
r
.
ID
=
ru
.
ROLE_ID
and
ru
.
USER_ID
=#
para
(
userId
)
#
include
(
"message.sql"
)
)
)
order
by
GROUP_ORDER
DESC
;
#
sql
(
"getSetPassword"
)
#
end
select
*
from
AS_SET_PASSWORD
where
id
=
'1'
#
include
(
"message.sql"
)
#
sql
(
"getSetPassword"
)
select
*
from
AS_SET_PASSWORD
where
id
=
'1'
#
end
#
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment