Lius
2025-03-03 c89ca4524fa8311ebb415a2f225d2f95da780603
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml
@@ -33,4 +33,16 @@
        </where>
        ORDER BY the_date DESC, equipment_id ASC
    </select>
    <!--计算 计划/非计划停机当天总时长-->
    <select id="findPlanTimeDuration" resultType="java.lang.Integer">
        SELECT
            sum(plan_close_time_long)
        FROM
            mdc_plan_close
        WHERE
            equipment_id = #{equipmentId}
            AND the_date = #{validDate}
            AND close_type = #{closeType}
    </select>
</mapper>