linhw 2024-06-24 13:42:00 +08:00
parent 61f20f923a
commit c7eaa22d5d
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectByFriendId" parameterType="java.lang.Long" resultType="java.lang.Long">
select DISTINCT(user_id) from app_user_friend
select DISTINCT(friend_id) from app_user_friend
<where>
<if test="ids != null and ids.size() > 0">
friend_id in
user_id in
<foreach collection="ids" item="item" open="(" separator="," close=")">
#{item}
</foreach>