|
@@ -123,8 +123,12 @@
|
|
|
<result property="id" column="id_" />
|
|
|
<result property="name" column="name_" />
|
|
|
<result property="type" column="type_"/>
|
|
|
+ <result property="avatar" column="avatar_"/>
|
|
|
</resultMap>
|
|
|
<select id="queryNameByIds" resultMap="NameDto">
|
|
|
- select friend_id_ id_,friend_nickname_ name_,1 type_ from im_user_friend where user_id_ = #{userId} and find_in_set(friend_id_,#{ids})
|
|
|
+ select iuf.friend_id_ id_,iuf.friend_nickname_ name_,1 type_,su.avatar_
|
|
|
+ from im_user_friend iuf
|
|
|
+ left join sys_user su on iuf.friend_id_ = su.id_
|
|
|
+ where iuf.user_id_ = #{userId} and find_in_set(friend_id_,#{ids})
|
|
|
</select>
|
|
|
</mapper>
|