<?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.MmPredictAlarmConfigDao">
|
<select id="getPageList" resultType="com.iailab.module.model.mcs.pre.vo.MmPredictAlarmConfigRespVO">
|
select t1.*,t2.itemname itemName,t3.tagname outName
|
from t_mm_predict_alarm_config t1
|
left join t_mm_predict_item t2 on t2.id = t1.item_id
|
left join t_mm_item_output t3 on t3.id = t1.out_id
|
<where>
|
<if test="params.title != null and params.title != ''">
|
AND t.title LIKE CONCAT('%', #{params.title},'%')
|
</if>
|
<if test="params.alarmObj != null and params.alarmObj != ''">
|
AND t.alarmObj LIKE CONCAT('%', #{params.alarmObj},'%')
|
</if>
|
</where>
|
</select>
|
</mapper>
|