|
@@ -62,13 +62,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where u.user_id = #{userId}
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
|
|
|
+ <select id="selectPostsByUserName" parameterType="Map" resultMap="SysPostResult">
|
|
|
select p.post_id, p.post_name, p.post_code
|
|
|
from sys_post p
|
|
|
left join sys_user_post up on up.post_id = p.post_id
|
|
|
left join sys_user u on u.user_id = up.user_id
|
|
|
where u.user_name = #{userName}
|
|
|
- and p.tenant_id = #{tenantId}
|
|
|
+ and p.tenant_id = #{tenantId, jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
<select id="checkPostNameUnique" parameterType="String" resultMap="SysPostResult">
|