| | |
| | | <if test="alarm.level!=null"> |
| | | and a.level like concat('%',#{alarm.level},'%') |
| | | </if> |
| | | <if test="alarm.waringType!=null"> |
| | | <if test="alarm.waringType!=null and alarm.waringType!='undefined'"> |
| | | and a.waringType like concat('%',#{alarm.waringType},'%') |
| | | </if> |
| | | <if test="alarm.beginTime!=null and alarm.beginTime!=''"> |
| | | <if test="alarm.beginTime!=null and alarm.beginTime!='' and alarm.beginTime!='undefined'"> |
| | | and a.alarmTime>=#{alarm.beginTime} |
| | | </if> |
| | | <if test="alarm.endTime!=null and alarm.endTime!=''"> |
| | | <if test="alarm.endTime!=null and alarm.endTime!='' and alarm.endTime!='undefined'"> |
| | | and a.alarmTime<=#{alarm.endTime} |
| | | </if> |
| | | <if test="alarm.timeDesc!=null and alarm.timeDesc!=''"> |
| | | <if test="alarm.timeDesc!=null and alarm.timeDesc!='' and alarm.timeDesc!='undefined'"> |
| | | <if test="alarm.timeDesc=='30分钟以上'"> |
| | | and czTime-alarmTime>1800 |
| | | </if> |
| | |
| | | ) b |
| | | on |
| | | a.days = b.datetime |
| | | order by days |
| | | </select> |
| | | |
| | | |