Merge pull request #39 from rymcu/wx-dev

评论模块/搜索结果跳转个人主页问题修复
This commit is contained in:
ronger 2021-04-20 08:53:58 +08:00 committed by GitHub
commit b5d724ef9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,7 @@
<result column="id" property="idUser"/> <result column="id" property="idUser"/>
<result column="nickname" property="userNickname"/> <result column="nickname" property="userNickname"/>
<result column="avatar_url" property="userAvatarURL"/> <result column="avatar_url" property="userAvatarURL"/>
<result column="account" property="userAccount"/>
</resultMap> </resultMap>
<update id="updateCommentSharpUrl"> <update id="updateCommentSharpUrl">
update forest_comment set comment_sharp_url = #{commentSharpUrl} where id = #{idComment} update forest_comment set comment_sharp_url = #{commentSharpUrl} where id = #{idComment}
@ -41,9 +42,9 @@
select * from forest_comment where comment_article_id = #{idArticle} order by created_time desc select * from forest_comment where comment_article_id = #{idArticle} order by created_time desc
</select> </select>
<select id="selectAuthor" resultMap="AuthorResultMap"> <select id="selectAuthor" resultMap="AuthorResultMap">
select id,nickname,avatar_url from forest_user where id = #{commentAuthorId} select id,nickname,avatar_url,account from forest_user where id = #{commentAuthorId}
</select> </select>
<select id="selectCommentOriginalAuthor" resultMap="AuthorResultMap"> <select id="selectCommentOriginalAuthor" resultMap="AuthorResultMap">
select vu.id,vu.nickname,vu.avatar_url from forest_comment vc left join forest_user vu on vu.id = vc.comment_author_id where vc.id = #{commentOriginalCommentId} select vu.id,vu.nickname,vu.avatar_url,vu.account from forest_comment vc left join forest_user vu on vu.id = vc.comment_author_id where vc.id = #{commentOriginalCommentId}
</select> </select>
</mapper> </mapper>

View File

@ -13,6 +13,6 @@
select portfolio_title as label, id as value, 'portfolio' as type from forest_portfolio select portfolio_title as label, id as value, 'portfolio' as type from forest_portfolio
</select> </select>
<select id="searchInitialUserSearch" resultMap="BaseResultMap"> <select id="searchInitialUserSearch" resultMap="BaseResultMap">
select nickname as label, nickname as value, 'user' as type from forest_user where status = 0 select nickname as label, account as value, 'user' as type from forest_user where status = 0
</select> </select>
</mapper> </mapper>