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