add
This commit is contained in:
@ -7,4 +7,16 @@
|
||||
<select id="selectPostIdsByUserId" resultType="string">
|
||||
select post_id from sys_user_post where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectUsedPostNameByIds" resultType="string">
|
||||
select DISTINCT t1.post_name
|
||||
from sys_post t1
|
||||
LEFT JOIN sys_user_post t2
|
||||
on t1.post_id = t2.post_id
|
||||
where t2.post_id in
|
||||
<foreach collection="list" item="postId" open="(" separator="," close=")">
|
||||
#{postId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user