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, |
|
13 |
b.comment_content AS commentContent, |
|
14 |
b.create_date AS createDate, |
|
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 |
|
25 |
a.create_date ASC |
|
26 |
<if test="limitCount != null"> |
|
27 |
LIMIT #{limitCount}; |
|
28 |
</if> |
|
29 |
</select> |
88f419
|
30 |
</mapper> |