| | |
| | | <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> |
| | | AND status = '22' |
| | | AND alarm = #{ vo.alarmCode } |
| | | AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate }) |
| | | AND (start_time <= #{ endDate } AND end_time >= #{ startDate }) |
| | | <if test="vo.equipmentIdList != null and vo.equipmentIdList.size() > 0 "> |
| | | AND equipment_id IN |
| | | <foreach collection="vo.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> |