<?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.pre.dao.MmPredictAutoAdjustConfigDao">
|
<select id="getPage" resultType="com.iailab.module.model.mcs.pre.vo.MmPredictAutoAdjustConfigVO">
|
select
|
t1.*,
|
t2.result_name output_name,
|
t3.itemname item_name
|
from t_mm_predict_auto_adjust_config t1
|
left join t_mm_item_output t2 on t1.output_id = t2.id
|
left join t_mm_predict_item t3 on t2.itemid = t3.id
|
<where>
|
<if test="params.configName != null and params.configName != ''">
|
and t1.config_name like CONCAT('%', #{params.configName},'%')
|
</if>
|
<if test="params.configCode != null and params.configCode != ''">
|
and t1.config_code like CONCAT('%', #{params.configCode},'%')
|
</if>
|
</where>
|
order by t1.create_time desc
|
</select>
|
</mapper>
|