| | |
| | | select a.*,IFNULL(b.num,0) num from (select count(t2.id) as allCount,t1.key from com_act_reserve t |
| | | LEFT JOIN com_act_reserve_sub t1 on t.id = t1.reserve_id |
| | | LEFT JOIN com_act_reserve_answer_content t2 on t1.id = t2.reserve_sub_id |
| | | where t.community_id = #{communityId} and t.title like '%返攀登记%' and t1.`key` in (1,2,3,17,18,19) group by t1.key) a LEFT JOIN |
| | | where t.community_id = #{communityId} and t.title like '%返攀登记%' and t1.`key` in (1,2,3,17,19,26) group by t1.key) a LEFT JOIN |
| | | (select count(t2.id) as num,t1.key from com_act_reserve t |
| | | LEFT JOIN com_act_reserve_sub t1 on t.id = t1.reserve_id |
| | | LEFT JOIN com_act_reserve_answer_content t2 on t1.id = t2.reserve_sub_id |
| | | where t.community_id = #{communityId} and t.title like '%返攀登记%' and t1.`key` in (1,2,3,17,18,19) and t2.answer_content = '是' group by t1.key) b on a.key = b.key |
| | | where t.community_id = #{communityId} and t.title like '%返攀登记%' and t1.`key` in (1,2,3,17,19,26) and t2.answer_content = '是' group by t1.key) b on a.key = b.key |
| | | </select> |
| | | |
| | | <select id="IndexHomeQuarantineSub" resultType="com.panzhihua.common.model.vos.community.bigscreen.IndexReserveSub"> |