危化品全生命周期管理后端
“djh”
2025-07-29 72fc14d9b157897f2581137d7d463eb72da8f135
hazmat-system/src/main/resources/mapper/system/HzWarningMapper.xml
@@ -63,7 +63,19 @@
    </select>
    <select id="selectWarningCount" resultType="java.lang.Integer" parameterType="java.lang.Long">
        select count(1) from hz_warning where company_id=#{companyId} and state=0
        select count(1) from hz_warning where  state=0
        <if test="companyId != null">
            and company_id=#{companyId}
        </if>
    </select>
    <select id="dailyWarningStatic" resultType="com.gkhy.hazmat.system.domain.vo.HzEntryRecordVO">
        SELECT
            DATE_FORMAT(create_time, '%m-%d') AS day,
            COUNT(*) AS count
        FROM hz_warning
        WHERE create_time BETWEEN #{startDate} AND #{endDate}
        GROUP BY day
        ORDER BY day
    </select>