Lius
2025-03-18 423c836f9a0b15033b048c9d2666d3440fecdca0
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml
@@ -27,4 +27,17 @@
        </where>
        ORDER BY t1.create_time DESC
    </select>
    <select id="findPlanTimeDuration" resultType="org.jeecg.modules.mdc.entity.MdcDowntime">
        SELECT
            t1.*
        FROM
            mdc_downtime t1
                LEFT JOIN mdc_downtime_reason t2 ON t1.reason_id = t2.id
        WHERE
            t1.status = 1
            AND t1.equipment_id = #{equipmentId}
            AND t2.downtime_type = #{closeType}
            AND t1.the_date = #{validDate}
    </select>
</mapper>