Lius
2025-05-21 d0b97b5655a6cac1efbda08dad1d3019ed973923
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDownTimeMapper.xml
@@ -27,4 +27,24 @@
        </where>
        ORDER BY the_date DESC, equipment_id ASC
    </select>
    <!--查询当月总故障停机时间-->
    <select id="findTotalDownLong" resultType="java.math.BigDecimal">
        SELECT
            SUM(down_long)
        FROM
            mdc_down_time
        WHERE
            the_date LIKE CONCAT(#{month}, '%')
    </select>
    <!--查询当月总故障停机次数-->
    <select id="findTotalDownCount" resultType="java.lang.Integer">
        SELECT
            COUNT(down_long)
        FROM
            mdc_down_time
        WHERE
            the_date LIKE CONCAT(#{month}, '%')
    </select>
</mapper>