根据岗位编号查询用户,查询所有岗位角色
This commit is contained in:
@@ -32,7 +32,7 @@ public class UserPostController {
|
||||
|
||||
// 获取岗位(部门)
|
||||
@GetMapping("/getPost")
|
||||
public AjaxResult getPost(){
|
||||
public AjaxResult getPost(String postName){
|
||||
List<Post> list = postService.selectPostList();
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ import java.util.List;
|
||||
|
||||
public interface PostMapper {
|
||||
|
||||
@Select("select * from sys_post where status = '0' and post_name like '%部'")
|
||||
@Select("select * from sys_post where status = '0'")
|
||||
List<Post> selectPostList();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="postCode" column="post_code" />
|
||||
</resultMap>
|
||||
|
||||
<select id="getUserPostListByCode" resultMap="UserResult">
|
||||
<select id="getUserListByCode" resultMap="UserResult">
|
||||
SELECT u.user_id, nick_name , post_name , post_code
|
||||
FROM sys_role r
|
||||
JOIN sys_user_role ur ON r.role_id = ur.role_id
|
||||
|
||||
Reference in New Issue
Block a user