From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 21 八月 2021 16:35:14 +0800
Subject: [PATCH] 随手拍改版接口开发

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleDAO.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleDAO.java
index 584dbd8..a3e17ea 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActNeighborCircleDAO.java
@@ -42,6 +42,7 @@
             "canc.last_fabulous_num," +
             "canc.last_views_num," +
             "canc.type," +
+            "canc.topic_id," +
             "su.nick_name as name," +
             "su.community_id," +
             "canct.name as topicName," +
@@ -70,8 +71,8 @@
             "select canc.id,su.nick_name as name,su.image_url as headUrl,canc.release_content " +
             ",canc.release_images,canc.comment_num,canc.fabulous_num,canc.forward_num,canc.views_num,canct.name as topicName " +
             ",canc.is_boutique,canc.create_at,canc.reply_at,su.community_id,canc.type from com_act_neighbor_circle as canc " +
-            " left join sys_user as su on su.user_id = canc.release_id where id = #{circleId} "+
-            " left join com_act_neighbor_circle_topic as canct on canct.id = canc.topic_id" +
+            " left join sys_user as su on su.user_id = canc.release_id  "+
+            " left join com_act_neighbor_circle_topic as canct on canct.id = canc.topic_id where canc.id = #{circleId}" +
             " </script>")
     ComActNeighborCircleDetailAppVO neighborDetailByApp(@Param("circleId") Long circleId);
     @Select("<script> \n"+
@@ -88,6 +89,9 @@
             "<if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent != &quot;&quot;'>" +
             "and nc.release_content like concat('%',#{neighborCircleAdminDTO.releaseContent},'%')  \n" +
             " </if> " +
+            "<if test='neighborCircleAdminDTO.topicName != null and neighborCircleAdminDTO.topicName != &quot;&quot;'>" +
+            "and canct.`name` = #{neighborCircleAdminDTO.topicName}  " +
+            " </if> " +
             "<if test='neighborCircleAdminDTO.startAt != null and neighborCircleAdminDTO.endAt !=null '>" +
             "and nc.create_at between #{neighborCircleAdminDTO.startAt} and #{neighborCircleAdminDTO.endAt}  \n" +
             " </if> " +

--
Gitblit v1.7.1