| | |
| | | </if> |
| | | AND dam_id = #{vo.damId} |
| | | </select> |
| | | <select id="getAlarmDetailPage" resultType="cn.gistack.nky.vo.AlarmGetVO"> |
| | | SELECT * FROM NKY_ALARM_GET |
| | | WHERE 1=1 |
| | | <if test="vo.startTime != null and vo.startTime != ''"> |
| | | AND DATE_FORMAT(time,'%Y-%m-%d') >= #{vo.startTime} |
| | | </if> |
| | | <if test="vo.endTime != null and vo.endTime !='' "> |
| | | AND DATE_FORMAT(time,'%Y-%m-%d') <= #{vo.endTime} |
| | | </if> |
| | | <if test="vo.level != null and vo.level !='' "> |
| | | AND level = #{vo.level} |
| | | </if> |
| | | <if test="vo.status != null and vo.status !='' "> |
| | | AND status = #{vo.status} |
| | | </if> |
| | | <if test="vo.type != null and vo.type !='' "> |
| | | AND type = #{vo.type} |
| | | </if> |
| | | AND dam_id = #{vo.damId} |
| | | </select> |
| | | </mapper> |