浏览代码

bugfix:1010 商户A(入驻店铺提交后等待审核)关注商户B,商户B的好友/关注/粉丝列表中字段值显示不正确

qxy 1 月之前
父节点
当前提交
d53cb00267
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      alien-entity/src/main/java/shop/alien/mapper/LifeFansMapper.java

+ 2 - 1
alien-entity/src/main/java/shop/alien/mapper/LifeFansMapper.java

@@ -23,7 +23,8 @@ public interface LifeFansMapper extends BaseMapper<LifeFans> {
             "        from life_fans   " +
             "        where delete_flag = 0 and fans_id = #{fansId} " +
             "    )   " +
-            "    select info.id, info.store_name name, user.head_img image, concat('store_', user.phone) phoneId, info.store_blurb blurb, 1 blockedType,user.id blockedId" +
+            "    select info.id, IF(info.store_application_status = 0, user.nick_name, info.store_name) AS NAME," +
+            "    user.head_img image, concat('store_', user.phone) phoneId, IF(info.store_application_status = 0, user.account_blurb, info.store_blurb) AS blurb, 1 blockedType,user.id blockedId" +
             "    from follow foll " +
             "    join store_user user on foll.phone = user.phone " +
             "    join store_info info on info.id = user.store_id " +