1231231231231231312312
This commit is contained in:
parent
c6c0665f61
commit
d39c308250
@ -183,6 +183,11 @@ public class CommentServiceImpl implements CommentService {
|
||||
{
|
||||
|
||||
String child = commentDao.queryChildId(commentId);
|
||||
if(child == null)
|
||||
{
|
||||
commentDao.deleteByPrimaryKey(commentId);
|
||||
return "处理完成";
|
||||
}
|
||||
String [] childrens = child.split(",");
|
||||
int flag = 0;
|
||||
for(String id : childrens)
|
||||
|
@ -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' and id = #{commentId,jdbcType=INTEGER}
|
||||
WHERE ischild != '0'
|
||||
order by id desc
|
||||
limit 1
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user