| | |
| | | start_time |
| | | </select> |
| | | |
| | | <!--计算一段时间内的运行数据--> |
| | | <select id="listEquipmentRunningSectionRun" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentRunningSection"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_equipment_running_section |
| | | WHERE |
| | | equipment_id = #{ equipmentId } |
| | | AND status <![CDATA[ <> ]]> '22' |
| | | AND (start_long <= #{ endLong } AND end_long >= #{ startLong }) |
| | | ORDER BY |
| | | start_time |
| | | </select> |
| | | |
| | | <!--计算一段时间内的故障数据--> |
| | | <select id="listEquipmentRunningSectionError" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentRunningSection"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_equipment_running_section |
| | | WHERE |
| | | equipment_id = #{ equipmentId } |
| | | AND status = '22' |
| | | AND (start_long <= #{ endLong } AND end_long >= #{ startLong }) |
| | | ORDER BY |
| | | start_time |
| | | </select> |
| | | |
| | | |
| | | </mapper> |