12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?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.ruoyi.predict.mapper.NoscalePrDaPfPeriodDataMapper">
- <resultMap type="NoscalePrDaPfPeriodData" id="NoscalePrDaPfPeriodDataResult">
- <result property="wfPrNo" column="wf_pr_no"/>
- <result property="modelNo" column="model_no"/>
- <result property="dataTime" column="data_time"/>
- <result property="value" column="value"/>
- <result property="dataFlag" column="data_flag"/>
- </resultMap>
- <sql id="selectNoscalePrDaPfPeriodDataVo">
- select wf_pr_no, model_no, data_time, value, data_flag from noscale_pr_da_pf_period_data
- </sql>
- <select id="selectNoscalePrDaPfPeriodDataList" parameterType="NoscalePrDaPfPeriodData"
- resultMap="NoscalePrDaPfPeriodDataResult">
- <include refid="selectNoscalePrDaPfPeriodDataVo"/>
- <where>
- <if test="wfPrNo != null ">and wf_pr_no = #{wfPrNo}</if>
- <if test="modelNo != null ">and model_no = #{modelNo}</if>
- <if test="value != null ">and value = #{value}</if>
- <if test="dataFlag != null ">and data_flag = #{dataFlag}</if>
- <if test="params.beginDataTime != null and params.beginDataTime != '' and params.endDataTime != null and params.endDataTime != ''">
- and data_time between to_date(#{params.beginDataTime},'yyyy-MM-dd HH24:MI:SS') and
- to_date(#{params.endDataTime},'yyyy-MM-dd HH24:MI:SS')
- </if>
- <if test="dataTime != null ">and data_time = #{dataTime}</if>
- </where>
- order by data_time asc
- </select>
- <select id="selectNoscalePrDaPfPeriodDataById" parameterType="Long" resultMap="NoscalePrDaPfPeriodDataResult">
- <include refid="selectNoscalePrDaPfPeriodDataVo"/>
- where wf_pr_no = #{wfPrNo}
- </select>
- <select id="selectNoscalePrDaPfPeriodData" parameterType="NoscalePrDaPfPeriodData" resultMap="NoscalePrDaPfPeriodDataResult">
- <include refid="selectNoscalePrDaPfPeriodDataVo"/>
- where wf_pr_no = #{wfPrNo} and model_no = #{modelNo} and data_time > #{dataTime}
- </select>
- </mapper>
|