id, create_user_id, create_date, update_user_id, maintenance_company_id, maintenance_company_name, section_id, section_name, file_name, file_url, update_date, del_flg, remark
SELECT
section_id,
section_name,
maintenance_company_id,
maintenance_company_name,
COUNT(id) as sumCount
FROM
T_Sec_Emergency_Disposal
WHERE
del_flg = 0
AND section_id = #{sectionId}
AND maintenance_company_id = #{maintenanceCompanyId}
and DATE_FORMAT(create_date, '%Y') = #{uploadYear}
GROUP BY
section_id,
section_name,
maintenance_company_id,
maintenance_company_name
order by
section_id,
maintenance_company_id