| | |
| | | (SELECT |
| | | Round( |
| | | ( |
| | | ( |
| | | ( SELECT count(1) FROM ( |
| | | SELECT |
| | | count( 1 ) |
| | | FROM |
| | | com_act_discuss AS ad |
| | | INNER JOIN com_act AS ca ON ca.community_id = ad.community_id |
| | | INNER JOIN com_act_discuss_option_user AS ou ON ou.discuss_option_id = ad.id |
| | | WHERE |
| | | ad.`status` = '5' |
| | | INNER JOIN com_act_discuss_option_user AS ou ON ou.discuss_id = ad.id GROUP BY ad.id ) as ddd |
| | | ) / ( |
| | | SELECT |
| | | count( 1 ) |
| | | FROM |
| | | com_act_discuss AS ad |
| | | INNER JOIN com_act AS ca ON ca.community_id = ad.community_id |
| | | WHERE |
| | | ad.`status` = '5' |
| | | ) |
| | | ) * 100, |
| | | 2 |
| | | ) )as discussPercentage |
| | | |
| | | ) )as discussPercentage, |
| | | ( SELECT count(*) from com_act as ca INNER JOIN com_mng_volunteer_org_team as vm on ca.community_id = vm.community_id |
| | | where vm.parent_id != '0' |
| | | ) AS volunteerTeam , |
| | | ( SELECT count(*) from com_act as ca INNER JOIN com_mng_volunteer_org_team as vm on ca.community_id = vm.community_id |
| | | where vm.parent_id != '0' |
| | | ) as volunteerOrg , |
| | | ( SELECT count(1) fROM com_act_discuss AS ad |
| | | INNER JOIN com_act AS ca ON ca.community_id = ad.community_id |
| | | INNER JOIN com_act_discuss_option_user as ado on ado.discuss_id = ad.id |
| | | ) as discussCount, |
| | | (SELECT count(*) from com_act as ca INNER JOIN com_act_questnaire as aq on ca.community_id = aq.community_id ) as questnaireCount |
| | | |
| | | |
| | | </select> |