危化品全生命周期管理后端
“djh”
2025-05-07 da2c594ade5d69621dd11a13bb758477e2dc079e
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>