linhw 2024-05-07 20:04:45 +08:00
parent 9684302ae9
commit 9cee33b8f8
1 changed files with 1 additions and 1 deletions

View File

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