| | |
| | | LEFT JOIN sys_user AS su ON su.user_id = canct.create_by |
| | | <where> |
| | | <if test="circleTopicAdminDTO.communityId != null"> |
| | | and canct.community_id = #{circleTopicAdminDTO.communityId} |
| | | and canct.community_id = ${circleTopicAdminDTO.communityId} |
| | | </if> |
| | | <if test="circleTopicAdminDTO.status != null"> |
| | | and canct.status = #{circleTopicAdminDTO.status} |
| | |
| | | |
| | | <select id="getNeighborTopicByApp" resultType="com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleTopicAppVO"> |
| | | SELECT canct.id, canct.`name`, canct.hot_num,( SELECT count( id ) FROM com_act_neighbor_circle WHERE is_del = 2 AND `status` = 2 and topic_id = canct.id) AS `count` |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 and canct.community_id = #{communityId} |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 and canct.community_id = ${communityId} |
| | | <if test="isZero != null and isZero == 1"> |
| | | and `count` > 0 |
| | | </if> |