Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
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
李丛阳
education
Commits
fa2242f5
Commit
fa2242f5
authored
Sep 30, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu
parent
060d0a17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
SysUserController.java
...va/org/rcisoft/sys/user/controller/SysUserController.java
+0
-1
SysUserMapper.java
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
+3
-3
No files found.
src/main/java/org/rcisoft/sys/user/controller/SysUserController.java
View file @
fa2242f5
...
...
@@ -114,7 +114,6 @@ public class SysUserController extends PaginationController<SysUser> {
/**
* 查询菜单
*
* @param user
* @return
*/
...
...
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
View file @
fa2242f5
...
...
@@ -26,7 +26,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
"and su.corp_id = #{corpId} "
+
"<if test=\"name!=null and name != ''\"> and su.name like CONCAT('%',#{name},'%') </if>"
+
"<if test=\"roleName!=null and roleName != ''\"> and sr.r
ole
_name = #{roleName}</if>"
+
"<if test=\"roleName!=null and roleName != ''\"> and sr.r_name = #{roleName}</if>"
+
"<if test=\"flag!=null and flag != ''\"> and su.flag = #{flag}</if></script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
SysUser
>
queryUsers
(
QuerySysUserDTO
dto
);
...
...
@@ -50,7 +50,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
"</script>"
)
int
stopFlag
(
@Param
(
"businessId"
)
List
<
String
>
businessId
);
@Select
(
"<script>select ur.user_id from s_r_user_role ur left JOIN tm_admin_role sr on ur.role_id = sr.r_id where sr.r
ole
_name in"
+
@Select
(
"<script>select ur.user_id from s_r_user_role ur left JOIN tm_admin_role sr on ur.role_id = sr.r_id where sr.r_name in"
+
"<foreach item='item' index='index' collection='roleName' open='(' separator=',' close=')'> #{item} </foreach> "
+
"</script>"
)
List
<
String
>
adminId
(
@Param
(
"roleName"
)
List
<
String
>
roleName
);
...
...
@@ -136,7 +136,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@Delete
(
"<script>delete from s_r_user_role where user_id = #{businessId}</script>"
)
int
deleteUserRole
(
String
businessId
);
@Select
(
"<script>select su.*,ba.`name` as agencyName,sr.r
ole
_name as roleName,sr.business_id as roleId from s_user su "
+
@Select
(
"<script>select su.*,ba.`name` as agencyName,sr.r_name as roleName,sr.business_id as roleId from s_user su "
+
"LEFT JOIN s_r_user_role sru on su.business_id = sru.user_id "
+
"LEFT JOIN tm_admin_role sr on sru.role_id = sr.r_id "
+
"where su.is_created = '1' and su.del_flag = 0 and su.flag = 1 "
+
...
...
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