houzhongjian
8 天以前 3058865fa4dfa634a92b4ebd826d8b1264dc90a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.iailab.module.model.mcs.sche.dao.StAdjustResultDao">
    <select id="getPage" resultType="com.iailab.module.model.mcs.sche.vo.StAdjustResultRespVO">
        SELECT t1.*,t2.result_name outputName
        FROM t_st_adjust_result t1,t_mm_item_output t2
        <where>
            and t1.output_id = t2.id
            <if test="params.configId != null and params.configId != ''">
                and t1.config_id = #{params.configId}
            </if>
            <if test="params.startTime != null">
                and t1.adjust_time &gt;= #{params.startTime}
            </if>
            <if test="params.endTime != null">
                and t1.adjust_time &lt;= #{params.endTime}
            </if>
        </where>
        ORDER BY t1.adjust_time desc
    </select>
</mapper>