| | |
| | | start_time |
| | | </select> |
| | | |
| | | <!--查询报警号报警详细信息--> |
| | | <select id="selectAlarmList" resultType="org.jeecg.modules.mdc.dto.MdcAlarmListDto"> |
| | | SELECT |
| | | t1.equipment_id, |
| | | t2.equipment_name, |
| | | t1.start_time, |
| | | t1.end_time, |
| | | t1.duration |
| | | FROM |
| | | mdc_equipment_running_section t1 LEFT JOIN mdc_equipment t2 ON t1.equipment_id = t2.equipment_id |
| | | <where> |
| | | AND t1.status = '22' |
| | | AND t1.alarm = #{ vo.alarmCode } |
| | | <if test="vo.equipmentIdList != null and vo.equipmentIdList.size() > 0 "> |
| | | AND t1.equipment_id IN |
| | | <foreach collection="vo.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |