提交 | 用户 | 时间
|
9587d2
|
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 |
|
|
4 |
<mapper namespace="com.iailab.module.model.mcs.pre.dao.MmPredictAlarmConfigDao"> |
|
5 |
<select id="getPageList" resultType="com.iailab.module.model.mcs.pre.vo.MmPredictAlarmConfigRespVO"> |
|
6 |
select t1.*,t2.itemname itemName,t3.tagname outName |
|
7 |
from t_mm_predict_alarm_config t1 |
|
8 |
left join t_mm_predict_item t2 on t2.id = t1.item_id |
|
9 |
left join t_mm_item_output t3 on t3.id = t1.out_id |
|
10 |
<where> |
|
11 |
<if test="params.title != null and params.title != ''"> |
|
12 |
AND t.title LIKE CONCAT('%', #{params.title},'%') |
|
13 |
</if> |
|
14 |
<if test="params.alarmObj != null and params.alarmObj != ''"> |
|
15 |
AND t.alarmObj LIKE CONCAT('%', #{params.alarmObj},'%') |
|
16 |
</if> |
|
17 |
</where> |
|
18 |
</select> |
|
19 |
</mapper> |