| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="cn.gistack.nky.mapper.AlarmGetMapper"> |
| | | |
| | | <resultMap id="vo" type="cn.gistack.nky.vo.AlarmGetVO"> |
| | | <id column="id" property="id"/> |
| | | <result property="damId" column="dam_id"/> |
| | | <result property="type" column="type"/> |
| | | <result property="status" column="status"/> |
| | | <result property="baojingzhi" column="baojingzhi"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="desc" column="desc"/> |
| | | <result property="level" column="level"/> |
| | | <result property="originId" column="origin_id"/> |
| | | <result property="pointId" column="point_id"/> |
| | | <result property="value" column="value"/> |
| | | <result property="time" column="time"/> |
| | | <result property="taskCategory" column="task_category"/> |
| | | <result property="forward" column="forward" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | | <result property="reverse" column="reverse" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | | <result property="ratio" column="ratio" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="getAlarmDetail" resultMap="vo"> |
| | | SELECT * FROM NKY_ALARM_GET |
| | | WHERE 1=1 |
| | | <if test="vo.dateRange !=null and vo.dateRange.length > 0"> |
| | | AND time >= #{vo.daterange[0]} AND time <= #{vo.daterange[1]} |
| | | </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> |