| | |
| | | and dtype=#{equipment.dtype} |
| | | </if> |
| | | |
| | | <if test="dxtype!=null"> |
| | | <if test="dxtype!=null and dxtype == 1"> |
| | | and heartbeat >= DATE_SUB(NOW(),INTERVAL 1 DAY) |
| | | </if> |
| | | <if test="dxtype!=null and dxtype == 0"> |
| | | and heartbeat < DATE_SUB(NOW(),INTERVAL 1 DAY) |
| | | </if> |
| | | |
| | | <if test="childList!=null and childList.size>0"> |
| | |
| | | WHERE |
| | | 1 =1 |
| | | |
| | | <if test="equipment.deviceName!=null"> |
| | | <if test="equipment.deviceName!=null and equipment.deviceName!=''"> |
| | | and ( |
| | | deviceName like concat('%',#{equipment.deviceName},'%') |
| | | or deviceNumber like concat('%',#{equipment.deviceName},'%') |
| | |
| | | |
| | | <!--查询预警设备数量--> |
| | | <select id="selectEqCy" resultType="java.util.HashMap"> |
| | | SELECT COUNT(deviceNumber) as cou,deviceNumber FROM `sys_alarm` WHERE alarmTime like concat(concat('%', #{time}), '%') and waringType NOT IN("系统测试","主机重新上电") group by deviceNumber |
| | | SELECT |
| | | count( id ) AS jtype, |
| | | deviceNumber |
| | | FROM |
| | | sys_alarm |
| | | WHERE |
| | | waringType = "紧急求救" |
| | | AND jtype = 0 |
| | | OR jtype = 1 |
| | | GROUP BY |
| | | deviceNumber |
| | | </select> |
| | | |
| | | <!--查询设故障数量--> |