main
parent
61f20f923a
commit
c7eaa22d5d
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue