This commit is contained in:
2023-12-29 01:29:53 +08:00
parent 965dfb6d97
commit 2f866b85b1

View File

@@ -64,7 +64,7 @@
FROM ln_comment AS t
ORDER BY t.id ASC) t1,
(SELECT @pids := #{commentId,jdbcType=INTEGER}) t2) t3
WHERE ischild != '0'
WHERE ischild != '0' and id = #{commentId,jdbcType=INTEGER}
order by id desc
limit 1
</select>