Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
holmes
Commits
f49c03f9
Commit
f49c03f9
authored
Mar 04, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户权限管理模糊查询
parent
6bc3921d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PermissionController.java
...va/cn/qg/holmes/controller/auth/PermissionController.java
+1
-1
UserMapper.xml
src/main/resources/mapper/auth/UserMapper.xml
+1
-1
No files found.
src/main/java/cn/qg/holmes/controller/auth/PermissionController.java
View file @
f49c03f9
...
@@ -65,7 +65,7 @@ public class PermissionController {
...
@@ -65,7 +65,7 @@ public class PermissionController {
IPage
<
Permission
>
iPage
=
new
Page
<>(
pageNum
,
pageSize
);
IPage
<
Permission
>
iPage
=
new
Page
<>(
pageNum
,
pageSize
);
QueryWrapper
<
Permission
>
permissionQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Permission
>
permissionQueryWrapper
=
new
QueryWrapper
<>();
if
(!
StringUtils
.
isEmpty
(
menuName
))
{
if
(!
StringUtils
.
isEmpty
(
menuName
))
{
permissionQueryWrapper
.
eq
(
"menu_name"
,
menuName
);
permissionQueryWrapper
.
like
(
"menu_name"
,
menuName
);
}
}
IPage
page
=
permissionService
.
page
(
iPage
,
permissionQueryWrapper
);
IPage
page
=
permissionService
.
page
(
iPage
,
permissionQueryWrapper
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
src/main/resources/mapper/auth/UserMapper.xml
View file @
f49c03f9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
ON u.`id` = ur.`user_id` AND r.`id` = ur.`role_id`
ON u.`id` = ur.`user_id` AND r.`id` = ur.`role_id`
WHERE 1 = 1
WHERE 1 = 1
<if
test=
"userName != null and userName !=''"
>
<if
test=
"userName != null and userName !=''"
>
AND u.`username`
= #{userName}
AND u.`username`
LIKE CONCAT('%', #{userName}, '%')
</if>
</if>
<if
test=
"roleId != null and roleId !=''"
>
<if
test=
"roleId != null and roleId !=''"
>
AND ur.`role_id` = #{roleId}
AND ur.`role_id` = #{roleId}
...
...
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