|
|
@@ -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 " +
|