hazmat-system/src/main/resources/mapper/system/HzTabooWarningMapper.xml
@@ -62,6 +62,20 @@ </where> order by aa.state asc,aa.warning_type asc,aa.create_time desc </select> <select id="selectListCount" resultType="com.gkhy.hazmat.system.domain.vo.HzTabooVo"> SELECT sc.`name` AS company_name, COUNT( htw.company_id ) AS count FROM hz_taboo_warning htw LEFT JOIN sys_company sc ON htw.company_id = sc.id WHERE htw.state = #{state} GROUP BY htw.company_id ORDER BY count DESC </select> </mapper>