Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
7f4f611b
Commit
7f4f611b
authored
Mar 16, 2018
by
lichee
Browse files
#IID51 修改表名全为小写
parent
37606d65
Changes
4
Hide whitespace changes
Inline
Side-by-side
admin-console/src/main/resources/sql/console/menu.md
View file @
7f4f611b
...
@@ -8,7 +8,7 @@ queryByCondtion
...
@@ -8,7 +8,7 @@ queryByCondtion
m.*,f.NAME function_name,f.ACCESS_URL ,
m.*,f.NAME function_name,f.ACCESS_URL ,
p.name parent_menu_name
p.name parent_menu_name
@}
@}
from core_menu m left join core_function f on m.FUNCTION_ID=f.id left join core_
MENU
p on m.parent_menu_id = p.id
from core_menu m left join core_function f on m.FUNCTION_ID=f.id left join core_
menu
p on m.parent_menu_id = p.id
where 1=1
where 1=1
@if(!isEmpty(url)){
@if(!isEmpty(url)){
and f.access_url like #'%'+url+"%"#
and f.access_url like #'%'+url+"%"#
...
...
admin-console/src/main/resources/sql/console/role.md
View file @
7f4f611b
...
@@ -5,7 +5,7 @@ queryByCondtion
...
@@ -5,7 +5,7 @@ queryByCondtion
@pageTag(){
@pageTag(){
r.
*
r.
*
@}
@}
from core_
ROLE
r where 1=1
from core_
role
r where 1=1
@if(!isEmpty(code)){
@if(!isEmpty(code)){
and r.code like #"%"+code+"%"#
and r.code like #"%"+code+"%"#
@}
@}
...
@@ -49,7 +49,7 @@ batchDelByIds
...
@@ -49,7 +49,7 @@ batchDelByIds
*
批量删除角色,同时也参考batchDeleteRoleFunction,batchDeleteRoleMenu等方法删除其他关联数据
*
批量删除角色,同时也参考batchDeleteRoleFunction,batchDeleteRoleMenu等方法删除其他关联数据
delete from core_
ROLE
where id in( #join(ids)#);
delete from core_
role
where id in( #join(ids)#);
batchDeleteRoleFunction
batchDeleteRoleFunction
===
===
...
@@ -66,4 +66,4 @@ batchDeleteUserRole
...
@@ -66,4 +66,4 @@ batchDeleteUserRole
queryAllByDelflag
queryAllByDelflag
=================
=================
select
*
from core_
ROLE
r where r.del_flag = #delFlag#
select
*
from core_
role
r where r.del_flag = #delFlag#
admin-console/src/main/resources/sql/console/roleFunction.md
View file @
7f4f611b
...
@@ -3,13 +3,13 @@ deleteRoleFunction
...
@@ -3,13 +3,13 @@ deleteRoleFunction
*
删除所有的功能的角色配置
*
删除所有的功能的角色配置
delete from core_
ROLE_FUNCTION
where function_id in ( #join(ids)# )
delete from core_
role_function
where function_id in ( #join(ids)# )
getFunctionIdByRole
getFunctionIdByRole
===
===
*
获得角色对应的功能id
*
获得角色对应的功能id
select function_id from core_
ROLE_FUNCTION
where role_id=#roleId#
select function_id from core_
role_function
where role_id=#roleId#
getQueryFunctionAndRoleData
getQueryFunctionAndRoleData
...
@@ -17,4 +17,4 @@ getQueryFunctionAndRoleData
...
@@ -17,4 +17,4 @@ getQueryFunctionAndRoleData
*
获得所有查询功能,并查询角色对应的功能信息。
*
获得所有查询功能,并查询角色对应的功能信息。
select f.
*
,r.data_access_type from core_ROLE_FUNCTION r left join core_FUNCTION f on r.function_id=f.id where r.role_id=#roleId# and f.type='FN1'
select f.
*
,r.data_access_type from core_role_function r left join core_function f on r.function_id=f.id where r.role_id=#roleId# and f.type='FN1'
\ No newline at end of file
\ No newline at end of file
admin-console/src/main/resources/sql/console/user.md
View file @
7f4f611b
...
@@ -6,7 +6,7 @@ queryByCondtion
...
@@ -6,7 +6,7 @@ queryByCondtion
@pageTag(){
@pageTag(){
u.
*
,o.name org_name
u.
*
,o.name org_name
@}
@}
from core_
USER
u left join core_
ORG
o on u.org_id=o.id where 1=1 and u.del_flag = 0
from core_
user
u left join core_
org
o on u.org_id=o.id where 1=1 and u.del_flag = 0
@//数据权限,该sql语句功能点
@//数据权限,该sql语句功能点
and #function("user.query")#
and #function("user.query")#
@if(!isEmpty(orgId)){
@if(!isEmpty(orgId)){
...
@@ -41,11 +41,11 @@ queryByCondtion
...
@@ -41,11 +41,11 @@ queryByCondtion
batchDelUserByIds
batchDelUserByIds
===
===
update core_
USER
u set u.del_flag = 1 where u.id in( #join(ids)#)
update core_
user
u set u.del_flag = 1 where u.id in( #join(ids)#)
batchUpdateUserState
batchUpdateUserState
===
===
update core_
USER
u set u.state = #state# where u.id in( #join(ids)#)
update core_
user
u set u.state = #state# where u.id in( #join(ids)#)
queryUserRole
queryUserRole
===
===
...
@@ -56,8 +56,8 @@ queryUserRole
...
@@ -56,8 +56,8 @@ queryUserRole
ur.*, u.code as user_code,
ur.*, u.code as user_code,
u.name as user_name,
u.name as user_name,
org.name as org_name, role.name as role_name
org.name as org_name, role.name as role_name
from core_
USER_ROLE
ur
from core_
user_role
ur
left join core_
ORG
org on org.id = ur.org_id
left join core_
org
org on org.id = ur.org_id
left join core_user u on u.id = ur.user_id
left join core_user u on u.id = ur.user_id
left join core_role role on role.id = ur.role_id
left join core_role role on role.id = ur.role_id
where u.id=#id#
where u.id=#id#
...
...
Write
Preview
Supports
Markdown
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