diff --git a/src/main/resources/mybatis/CommentDao.xml b/src/main/resources/mybatis/CommentDao.xml index 812795a..7e9a7cc 100644 --- a/src/main/resources/mybatis/CommentDao.xml +++ b/src/main/resources/mybatis/CommentDao.xml @@ -14,6 +14,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -165,16 +190,16 @@ + - - SELECT * FROM ln_comment o LEFT JOIN ln_user u ON o.user_id=u.id WHERE o.url_id = #{urlId,jdbcType=INTEGER} AND o.root_comment_id = 0 - SELECT * FROM ln_comment o LEFT JOIN ln_user u ON o.user_id=u.id WHERE o.url_id = #{urlId,jdbcType=INTEGER} AND o.root_comment_id != 0 diff --git a/src/main/resources/mybatis/mybatis.xml b/src/main/resources/mybatis/mybatis.xml index df58021..d0be2d7 100644 --- a/src/main/resources/mybatis/mybatis.xml +++ b/src/main/resources/mybatis/mybatis.xml @@ -1,29 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file