Lius
2025-02-18 3423bb9ee5b25d270a00763b69ed73970d790f63
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcRepairInfoMapper.xml
@@ -27,4 +27,24 @@
        </where>
        ORDER BY the_date DESC, equipment_id ASC
    </select>
    <!--查询当月总维修时间-->
    <select id="findTotalRepairLong" resultType="java.math.BigDecimal">
        SELECT
            SUM(repair_long)
        FROM
            mdc_repair_info
        WHERE
            the_date LIKE CONCAT(#{month}, '%')
    </select>
    <!--查询当月总维修次数-->
    <select id="findTotalRepairCount" resultType="java.lang.Integer">
        SELECT
            COUNT(repair_long)
        FROM
            mdc_repair_info
        WHERE
            the_date LIKE CONCAT(#{month}, '%')
    </select>
</mapper>