|
|
|
@ -27,20 +27,23 @@
|
|
|
|
|
select distinct STATION_NAME from hzims_history_abnormal_alarm |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getAlarmEntity" resultType="com.hnac.hzims.operational.station.vo.HistoryAbnormalAlarmVo"> |
|
|
|
|
<select id="getAlarmEntity" resultType="com.hnac.hzims.operational.alert.entity.HistoryAbnormalAlarmEntity"> |
|
|
|
|
select * from hzims_history_abnormal_alarm |
|
|
|
|
where is_deleted = 0 |
|
|
|
|
<if test="type != null and type != ''"> |
|
|
|
|
and type = #{type} |
|
|
|
|
</if> |
|
|
|
|
<if test="stationName != null and stationName != ''"> |
|
|
|
|
and station_name = #{stationName} |
|
|
|
|
<if test="stationName != null"> |
|
|
|
|
and station_name in |
|
|
|
|
<foreach collection="stationName" item="item" open="(" close=")" separator="," > |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
<if test="startTime != null and startTime != ''"> |
|
|
|
|
and start_time = #{startTime} |
|
|
|
|
<if test="startTime != null"> |
|
|
|
|
and start_time > #{startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
|
and end_time = #{endTime} |
|
|
|
|
<if test="endTime != null"> |
|
|
|
|
and end_time <= #{endTime} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|