|
@@ -241,8 +241,11 @@
|
|
|
left join sms_device sd on (sp.id = sat.device_id)
|
|
|
where
|
|
|
1=1
|
|
|
- <if test="dto.name !=null and dto.name!=''" >
|
|
|
- and `name` like concat('%', #{dto.name}, '%')
|
|
|
+ <if test="dto.alarmName !=null and dto.alarmName != ''" >
|
|
|
+ and sat.`name` like concat('%', #{dto.alarmName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.alarmCategory !=null and dto.alarmCategory!=''" >
|
|
|
+ and sat.alarm_category = #{dto.alarmCategory}
|
|
|
</if>
|
|
|
and sat.status = 1
|
|
|
<include refid="permissionCondition"></include>
|