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.StAdjustConfigDao">
4     <select id="getPage" resultType="com.iailab.module.model.mcs.sche.vo.StAdjustConfigRespVO">
5         select
6         t1.id modelId,
7         t1.model_code modelCode,
8         t1.model_name modelName,
9         t2.id,
10         t2.remark,
11         t2.status,
12         t2.create_time
13         from t_st_schedule_model t1, t_st_adjust_config t2
14         <where>
15             and t1.id = t2.schedule_model_id
16             <if test="params.modelCode != null and params.modelCode != ''">
17                 and t1.model_code like CONCAT('%', #{params.modelCode},'%')
18             </if>
19             <if test="params.modelName != null and params.modelName != ''">
20                 and t1.model_name like CONCAT('%', #{params.modelName},'%')
21             </if>
22         </where>
23         order by t2.create_time desc
24     </select>
25 </mapper>