由于group by统计出现null
SELECT count(*) FROM(SELECT count(a.id) FROM temple_volunteer a LEFT JOIN temple_volunteer_recruitment b on a.recruitment_id = b.id WHERE b.temple_id = '1'
and a.status = 1 and a.del_flag = 0 GROUP BY a.id)t
由于group by统计出现null
SELECT count(*) FROM(SELECT count(a.id) FROM temple_volunteer a LEFT JOIN temple_volunteer_recruitment b on a.recruitment_id = b.id WHERE b.temple_id = '1'
and a.status = 1 and a.del_flag = 0 GROUP BY a.id)t