|
|
@@ -98,9 +98,10 @@ public interface LifeFansMapper extends BaseMapper<LifeFans> {
|
|
|
" select info.id, info.store_name name, user.head_img image, concat('store_', user.phone) phoneId, info.store_blurb blurb ,IFNULL(user.nick_name, user.name) username, user.account_blurb accountBlurb " +
|
|
|
" from follow foll " +
|
|
|
" join store_user user on foll.phone = user.phone " +
|
|
|
- " join store_info info on info.id = user.store_id " +
|
|
|
+ " LEFT JOIN store_info info ON user.store_id IS NOT NULL AND info.id = user.store_id " +
|
|
|
+ " and info.delete_flag = 0" +
|
|
|
" left join store_img img on img.store_id = user.store_id and img.img_type = '10' and img.delete_flag = 0 " +
|
|
|
- " where foll.flag = 'store' and user.delete_flag = 0 and info.delete_flag = 0 " +
|
|
|
+ " where foll.flag = 'store' and user.delete_flag = 0 " +
|
|
|
") foll " +
|
|
|
"left join life_fans fans on fans.followed_id = foll.phoneId and fans.fans_id = #{fansId} and fans.delete_flag = 0 " +
|
|
|
"left join life_fans fans2 on fans2.followed_id = foll.phoneId and fans2.delete_flag = 0 " +
|