123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?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.ProjectDaPfMonthDataMapper">
- <resultMap type="ProjectDaPfMonthData" id="ProjectDaPfMonthDataResult">
- <result property="wfPrNo" column="wf_pr_no"/>
- <result property="modelNo" column="model_no"/>
- <result property="dataTime" column="data_time"/>
- <result property="nrmse" column="nrmse"/>
- <result property="nmae" column="nmae"/>
- <result property="bias" column="bias"/>
- <result property="correlationCoeff" column="correlation_coeff"/>
- <result property="accuracyRate" column="accuracy_rate"/>
- <result property="dataCount" column="data_count"/>
- <result property="dataFlag" column="data_flag"/>
- </resultMap>
- <sql id="selectProjectDaPfMonthDataVo">
- select wf_pr_no, model_no, data_time, nrmse, nmae, bias, correlation_coeff, accuracy_rate, data_count, data_flag from project_da_pf_month_data
- </sql>
- <select id="selectProjectDaPfMonthDataList" parameterType="ProjectDaPfMonthData"
- resultMap="ProjectDaPfMonthDataResult">
- <include refid="selectProjectDaPfMonthDataVo"/>
- <where>
- <if test="wfPrNo != null ">and wf_pr_no = #{wfPrNo}</if>
- <if test="modelNo != null ">and model_no = #{modelNo}</if>
- <if test="nrmse != null ">and nrmse = #{nrmse}</if>
- <if test="nmae != null ">and nmae = #{nmae}</if>
- <if test="bias != null ">and bias = #{bias}</if>
- <if test="correlationCoeff != null ">and correlation_coeff = #{correlationCoeff}</if>
- <if test="accuracyRate != null ">and accuracy_rate = #{accuracyRate}</if>
- <if test="dataCount != null ">and data_count = #{dataCount}</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="selectProjectDaPfMonthDataById" parameterType="Long" resultMap="ProjectDaPfMonthDataResult">
- <include refid="selectProjectDaPfMonthDataVo"/>
- where wf_pr_no = #{wfPrNo}
- </select>
- </mapper>
|