根据岗位编号查询用户,查询所有岗位角色

This commit is contained in:
2026-01-18 15:25:15 +08:00
parent 3ea03e3c19
commit 83f8332cd9
3 changed files with 3 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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();
}

View File

@@ -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