From 784ac5ca68e1a96a23119d8d48870cbd0ffce84a Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期日, 24 一月 2021 15:06:15 +0800 Subject: [PATCH] 评论 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java index 91fbab1..0be0b72 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDiscussDAO.java @@ -155,12 +155,11 @@ "AND u.phone LIKE concat( #{pageComActDiscussCommentDTO.account}, '%' )\n" + " </if> " + "LEFT JOIN com_act_discuss_comment_user cu ON c.id = cu.disscuss_comment_id \n" + - " <where>" + + " where c.discuss_id=#{pageComActDiscussCommentDTO.id}" + "<if test='pageComActDiscussCommentDTO.comment != null and pageComActDiscussCommentDTO.comment.trim() != ""'>" + - "c.`comment` LIKE concat( '%', #{pageComActDiscussCommentDTO.comment" + + " and c.`comment` LIKE concat( '%', #{pageComActDiscussCommentDTO.comment" + "}, '%' ) \n" + " </if> " + - " </where>" + "GROUP BY\n" + "c.id\n" + ")t order by t.is_topping desc , t.create_at desc"+ -- Gitblit v1.7.1