Lius
2024-12-17 2d727903343feb01fedc988370091395c368faf2
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>