From 03350aea096a264a2f5ab6e40eae687fa1cd6ef9 Mon Sep 17 00:00:00 2001 From: sjm <2431685932@qq.com> Date: Wed, 27 Dec 2023 00:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mybatis/CommentDao.xml | 31 ++++++++++++++++++++--- src/main/resources/mybatis/mybatis.xml | 24 ------------------ 2 files changed, 28 insertions(+), 27 deletions(-) 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