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