houzhongjian
9 天以前 3058865fa4dfa634a92b4ebd826d8b1264dc90a3
提交 | 用户 | 时间
047676 1 <?xml version="1.0" encoding="UTF-8" ?>
L 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3 <mapper namespace="com.iailab.module.model.mcs.sche.dao.StAdjustResultDao">
4     <select id="getPage" resultType="com.iailab.module.model.mcs.sche.vo.StAdjustResultRespVO">
5         SELECT t1.*,t2.result_name outputName
6         FROM t_st_adjust_result t1,t_mm_item_output t2
7         <where>
8             and t1.output_id = t2.id
9             <if test="params.configId != null and params.configId != ''">
10                 and t1.config_id = #{params.configId}
11             </if>
12             <if test="params.startTime != null">
13                 and t1.adjust_time &gt;= #{params.startTime}
14             </if>
15             <if test="params.endTime != null">
16                 and t1.adjust_time &lt;= #{params.endTime}
17             </if>
18         </where>
19         ORDER BY t1.adjust_time desc
20     </select>
21 </mapper>