|
|
|
@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
left join base_alarm_type t2 on t1.AlarmType_Id = t2.alarmType_Id
|
|
|
|
|
left join base_sensor_info t3 on t1.Sensor_Id = t3.Sensor_Id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''"> and t3.Sensor_Name like concat('%', #{sensorId}, '%')</if>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''"> and t3.Sensor_Id like concat('%', #{sensorId}, '%')</if>
|
|
|
|
|
<if test="alarmtypeId != null and alarmtypeId != ''"> and t1.AlarmType_Id = #{alarmtypeId}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|