inleft
2022-03-02 34223b096cf6ad9d92c3702bb9529e764f523b11
commit | author | age
88f419 1 <?xml version="1.0" encoding="UTF-8"?>
I 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="vip.xiaonuo.modular.blogarticlecomment.mapper.BlogArticleCommentMapper">
4
e343e5 5     <select id="getReplyListById" resultType="vip.xiaonuo.modular.blogarticlecomment.entity.BlogCommentVo">
I 6         SELECT
7         b.id AS id,
8         b.parent_id AS parentId,
9         b.reply_id AS replyId,
10         b.visitor_id AS visitorId,
11         b.visitor_nick_name AS visitorNickName,
12         b.visitor_home_page AS visitorHomePage,
ceebd4 13         IF(b.auth_status=2,'(悄悄话已隐藏)******',b.comment_content) as commentContent,
e343e5 14         b.create_date AS createDate,
I 15         b.auth_status AS authStatus,
16         a.visitor_nick_name AS replyUserName,
17         a.visitor_home_page AS replyUserHomePage
18         FROM
19         `blog_article_comment` a
20         INNER JOIN `blog_article_comment` b ON a.id = b.reply_id
21         AND b.parent_id = #{id}
22         AND b.is_enable=1
23         AND b.is_check=1
24         ORDER BY
ceebd4 25         b.create_date ASC
e343e5 26         <if test="limitCount != null">
I 27             LIMIT #{limitCount};
28         </if>
29     </select>
88f419 30 </mapper>