|
@@ -18,11 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="listFriends" resultType="com.ruoyi.app.domain.TbMyFriends" parameterType="String">
|
|
|
select * from (
|
|
|
- select f.*,u.nick_name,u.qrcode,u.py_code,u.py_first
|
|
|
+ select f.*,u.nick_name,u.qrcode,u.py_code,u.py_first,u.avatar
|
|
|
from tb_my_friends f left join tb_app_user u on f.app_user_id = u.id
|
|
|
where f.friends_user_id = #{id}
|
|
|
union all
|
|
|
- select g.*,u.nick_name,u.qrcode,u.py_code,u.py_first
|
|
|
+ select g.*,u.nick_name,u.qrcode,u.py_code,u.py_first,u.avatar
|
|
|
from tb_my_friends g left join tb_app_user u on g.friends_user_id = u.id
|
|
|
where app_user_id = #{id}
|
|
|
) a where 1=1
|
|
@@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectApply" resultType="com.ruoyi.app.domain.TbMyFriends" parameterType="String">
|
|
|
- select f.*,u.nick_name,u.py_code,u.py_first
|
|
|
+ select f.*,u.nick_name,u.py_code,u.py_first,u.avatar
|
|
|
from tb_my_friends f left join tb_app_user u on f.app_user_id = u.id
|
|
|
${ew.customSqlSegment}
|
|
|
</select>
|