岗位用户查询

This commit is contained in:
2025-12-18 08:46:54 +08:00
parent d0c4a6664f
commit 521bd25efd
13 changed files with 156 additions and 59 deletions

View File

@@ -2,16 +2,16 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhyc.module.common.mapper.UserPostMapper">
<mapper namespace="com.zhyc.module.common.mapper.UserMapper">
<resultMap type="UserPost" id="UserPostResult">
<resultMap type="User" id="UserResult">
<result property="userId" column="user_id" />
<result property="nickName" column="nick_name" />
<result property="postName" column="post_name"/>
<result property="postCode" column="post_code" />
</resultMap>
<select id="getUserPostListByCode" resultMap="UserPostResult">
<select id="getUserPostListByCode" 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