Selaa lähdekoodia

bugfix: 3761 二手交易(提测0323):商品详情页,留言区点击别人的头像跳转他人主页报错

刘云鑫 3 viikkoa sitten
vanhempi
commit
42a36c0a4e

+ 2 - 1
alien-entity/src/main/java/shop/alien/entity/store/vo/CommonCommentVo.java

@@ -22,5 +22,6 @@ public class CommonCommentVo extends CommonComment {
     private Long sourceId;
     @ApiModelProperty(value = "数量")
     private Integer commentCount;
-
+    @ApiModelProperty(value = "评论用户手机号")
+    private String headPhone;
 }

+ 1 - 0
alien-entity/src/main/java/shop/alien/mapper/CommonCommentMapper.java

@@ -35,6 +35,7 @@ public interface CommonCommentMapper extends BaseMapper<CommonComment> {
     @Select("SELECT cc.*, " +
             "IF(cc.comment_type = 1, lu.user_image, su.head_img) AS headImg, " +
             "IF(cc.comment_type = 1, lu.user_name, su.nick_name) AS headName, " +
+            "IF(cc.comment_type = 1, lu.user_phone, su.phone) AS headPhone, " +
             "IF(llr.dianzan_id IS NULL, '0', '1') AS isLike " +
             "FROM common_comment cc " +
             "LEFT JOIN life_user lu ON cc.user_id = lu.id AND lu.delete_flag = 0 " +