Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
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
liyang
sts网站
Commits
e66d0e4f
Commit
e66d0e4f
authored
Oct 15, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色列表返回类型保持一致
parent
e7afea4c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
SysRoleMapper.java
.../src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java
+1
-1
ISysRoleService.java
...c/main/java/com/ruoyi/system/service/ISysRoleService.java
+1
-1
SysRoleServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysRoleServiceImpl.java
+1
-1
SysRoleMapper.xml
...system/src/main/resources/mapper/system/SysRoleMapper.xml
+1
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java
View file @
e66d0e4f
...
@@ -39,7 +39,7 @@ public interface SysRoleMapper
...
@@ -39,7 +39,7 @@ public interface SysRoleMapper
* @param userId 用户ID
* @param userId 用户ID
* @return 选中角色ID列表
* @return 选中角色ID列表
*/
*/
public
List
<
Integer
>
selectRoleListByUserId
(
Long
userId
);
public
List
<
Long
>
selectRoleListByUserId
(
Long
userId
);
/**
/**
* 通过角色ID查询角色
* 通过角色ID查询角色
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java
View file @
e66d0e4f
...
@@ -49,7 +49,7 @@ public interface ISysRoleService
...
@@ -49,7 +49,7 @@ public interface ISysRoleService
* @param userId 用户ID
* @param userId 用户ID
* @return 选中角色ID列表
* @return 选中角色ID列表
*/
*/
public
List
<
Integer
>
selectRoleListByUserId
(
Long
userId
);
public
List
<
Long
>
selectRoleListByUserId
(
Long
userId
);
/**
/**
* 通过角色ID查询角色
* 通过角色ID查询角色
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java
View file @
e66d0e4f
...
@@ -122,7 +122,7 @@ public class SysRoleServiceImpl implements ISysRoleService
...
@@ -122,7 +122,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* @return 选中角色ID列表
* @return 选中角色ID列表
*/
*/
@Override
@Override
public
List
<
Integer
>
selectRoleListByUserId
(
Long
userId
)
public
List
<
Long
>
selectRoleListByUserId
(
Long
userId
)
{
{
return
roleMapper
.
selectRoleListByUserId
(
userId
);
return
roleMapper
.
selectRoleListByUserId
(
userId
);
}
}
...
...
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
View file @
e66d0e4f
...
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include
refid=
"selectRoleVo"
/>
<include
refid=
"selectRoleVo"
/>
</select>
</select>
<select
id=
"selectRoleListByUserId"
parameterType=
"Long"
resultType=
"
Integer
"
>
<select
id=
"selectRoleListByUserId"
parameterType=
"Long"
resultType=
"
Long
"
>
select r.role_id
select r.role_id
from sys_role r
from sys_role r
left join sys_user_role ur on ur.role_id = r.role_id
left join sys_user_role ur on ur.role_id = r.role_id
...
...
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