| | |
| | | communityId,t.b_id,t.b_id bId,t.header_img,t.header_img headerImg,t.state,act.type_name typeCdName,t.create_time |
| | | createTime |
| | | from activities t |
| | | left join activities_type act on t.type_cd = act.type_cd and t.community_id = act.community_id |
| | | left join activities_type act on t.type_cd = act.type_cd |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id = act.community_id |
| | | </if> |
| | | where 1 =1 |
| | | and t.status_cd= '0' and act.status_cd = '0' |
| | | <if test="collectCount !=null and collectCount != ''"> |
| | |
| | | <select id="queryActivitiessCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from activities t |
| | | left join activities_type act on t.type_cd = act.type_cd and t.community_id = act.community_id |
| | | left join activities_type act on t.type_cd = act.type_cd |
| | | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id = act.community_id |
| | | </if> |
| | | where 1 =1 |
| | | and t.status_cd= '0' and act.status_cd = '0' |
| | | <if test="collectCount !=null and collectCount != ''"> |