<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.njcn.product.event.transientes.mapper.PqsEventdetailMapper">
  <resultMap id="BaseResultMap" type="com.njcn.product.event.transientes.pojo.po.PqsEventdetail">
    <!--@mbg.generated-->
    <!--@Table PQS_EVENTDETAIL-->
    <id column="EVENTDETAIL_INDEX" jdbcType="VARCHAR" property="eventdetailIndex" />
    <result column="LINEID" jdbcType="DECIMAL" property="lineid" />
    <result column="TIMEID" jdbcType="TIMESTAMP" property="timeid" />
    <result column="MS" jdbcType="DECIMAL" property="ms" />
    <result column="DESCRIBE" jdbcType="VARCHAR" property="describe" />
    <result column="WAVETYPE" jdbcType="DECIMAL" property="wavetype" />
    <result column="PERSISTTIME" jdbcType="FLOAT" property="persisttime" />
    <result column="EVENTVALUE" jdbcType="FLOAT" property="eventvalue" />
    <result column="EVENTREASON" jdbcType="VARCHAR" property="eventreason" />
    <result column="EVENTTYPE" jdbcType="VARCHAR" property="eventtype" />
    <result column="EVENTASS_INDEX" jdbcType="VARCHAR" property="eventassIndex" />
    <result column="DQTIME" jdbcType="FLOAT" property="dqtime" />
    <result column="DEALTIME" jdbcType="TIMESTAMP" property="dealtime" />
    <result column="DEALFLAG" jdbcType="DECIMAL" property="dealflag" />
    <result column="NUM" jdbcType="DECIMAL" property="num" />
    <result column="FILEFLAG" jdbcType="DECIMAL" property="fileflag" />
    <result column="FIRSTTIME" jdbcType="TIMESTAMP" property="firsttime" />
    <result column="FIRSTTYPE" jdbcType="VARCHAR" property="firsttype" />
    <result column="FIRSTMS" jdbcType="DECIMAL" property="firstms" />
    <result column="WAVENAME" jdbcType="VARCHAR" property="wavename" />
    <result column="ENERGY" jdbcType="FLOAT" property="energy" />
    <result column="SEVERITY" jdbcType="FLOAT" property="severity" />
    <result column="LOOK_FLAG" jdbcType="DECIMAL" property="lookFlag" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    EVENTDETAIL_INDEX, LINEID, TIMEID, MS, "DESCRIBE", WAVETYPE, PERSISTTIME, EVENTVALUE, 
    EVENTREASON, EVENTTYPE, EVENTASS_INDEX, DQTIME, DEALTIME, DEALFLAG, NUM, FILEFLAG, 
    FIRSTTIME, FIRSTTYPE, FIRSTMS, WAVENAME, ENERGY, SEVERITY, LOOK_FLAG
  </sql>

<!--  <select id="queryByCondition" resultType="com.njcn.product.event.transientes.pojo.vo.EventDetailVO">-->
<!--&lt;!&ndash;    SELECT * from( &ndash;&gt;-->
<!--    select * from PQS_EVENTDETAIL eve where eve.LINEID in-->
<!--    <foreach collection="deptslineIds" item="item" open="(" close=")" separator=",">-->
<!--      #{item}-->
<!--    </foreach>-->
<!--   and eve.TIMEID between TO_DATE( #{startTime},'YYYY-MM-DD HH24:MI:SS')  and TO_DATE( #{endTime},'YYYY-MM-DD HH24:MI:SS')-->
<!--    <if test="eventtype != null and eventtype ==1">-->
<!--      and eve.NOTICE_FLAG =1-->
<!--    </if>-->
<!--    <if test="eventtype == null or eventtype ==0">-->
<!--      and (eve.NOTICE_FLAG =0 or eve.NOTICE_FLAG is null)-->
<!--    </if>-->
<!--    order by eve.NOTICE_FLAG asc NULLS FIRST  , eve.TIMEID desc-->
<!--&lt;!&ndash;    )&ndash;&gt;-->
<!--&lt;!&ndash;    WHERE ROWNUM &lt;= 10;&ndash;&gt;-->
<!--  </select>-->


</mapper>