| | |
| | | </if> |
| | | AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate }) |
| | | AND status = '22' |
| | | AND alarm != '' |
| | | </where> |
| | | ORDER BY |
| | | start_time |
| | |
| | | <where> |
| | | AND status = '22' |
| | | AND alarm = #{ alarmCode } |
| | | AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate }) |
| | | AND (start_time <= #{ endDate } AND end_time >= #{ startDate }) |
| | | AND equipment_id = #{ equipmentId } |
| | | </where> |
| | | </select> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <!--查询时间段内运行数据--> |
| | | <select id="selectRunningData" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentRunningSection"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_equipment_running_section |
| | | WHERE |
| | | equipment_id = #{ equipmentId } |
| | | AND status = '3' |
| | | AND (start_time <= #{ endDate } AND end_time >= #{ startDate }) |
| | | ORDER BY |
| | | start_time |
| | | </select> |
| | | |
| | | |
| | | </mapper> |