1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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.LpWfMonthDataMapper">
- <resultMap type="LpWfMonthData" id="LpWfMonthDataResult">
- <result property="wfNo" column="wf_no"/>
- <result property="modelNo" column="model_no"/>
- <result property="dataTime" column="data_time"/>
- <result property="generatingCapacity" column="generating_capacity"/>
- <result property="pfGeneratingCapacity" column="pf_generating_capacity"/>
- <result property="dataFlag" column="data_flag"/>
- </resultMap>
- <sql id="selectLpWfMonthDataVo">
- select wf_no, model_no, data_time, generating_capacity, pf_generating_capacity, data_flag from lp_wf_month_data
- </sql>
- <select id="selectLpWfMonthDataList" parameterType="LpWfMonthData" resultMap="LpWfMonthDataResult">
- <include refid="selectLpWfMonthDataVo"/>
- <where>
- <if test="wfNo != null ">and wf_no = #{wfNo}</if>
- <if test="modelNo != null ">and model_no = #{modelNo}</if>
- <if test="generatingCapacity != null ">and generating_capacity = #{generatingCapacity}</if>
- <if test="pfGeneratingCapacity != null ">and pf_generating_capacity = #{pfGeneratingCapacity}</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="selectLpWfMonthDataById" parameterType="Long" resultMap="LpWfMonthDataResult">
- <include refid="selectLpWfMonthDataVo"/>
- where wf_no = #{wfNo}
- </select>
- <select id="selectLpWfMonthData" parameterType="LpWfMonthData" resultMap="LpWfMonthDataResult">
- <include refid="selectLpWfMonthDataVo"/>
- where wf_no = #{wfNo} and data_time > #{dataTime}
- </select>
- </mapper>
|