|
|
|
@ -89,8 +89,8 @@
|
|
|
|
|
from base_sensor_info t1
|
|
|
|
|
left join base_monitorunit_info t2 on t1.MonitorUnit_Id = t2.MonitorUnit_Id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="EdgeId != null and EdgeId != ''">and t1.EdgeId = #{EdgeId}</if>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''">and t1.Sensor_Id = #{sensorId}</if>
|
|
|
|
|
<if test="EdgeId != null and EdgeId != ''">and t1.EdgeId like concat('%', #{EdgeId},'%')</if>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''">and t1.Sensor_Id like concat('%', #{sensorId},'%')</if>
|
|
|
|
|
<if test="sensorName != null and sensorName != ''">and t1.Sensor_Name like concat('%', #{sensorName},
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
@ -126,8 +126,8 @@
|
|
|
|
|
left join base_monitorunit_info t3 on t2.MonitorUnit_Id = t3.MonitorUnit_Id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="roleId != null ">and t1.role_id = #{roleId}</if>
|
|
|
|
|
<if test="EdgeId != null and EdgeId != ''">and t2.EdgeId = #{EdgeId}</if>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''">and t2.Sensor_Id = #{sensorId}</if>
|
|
|
|
|
<if test="EdgeId != null and EdgeId != ''">and t2.EdgeId like concat('%', #{EdgeId},'%')</if>
|
|
|
|
|
<if test="sensorId != null and sensorId != ''">and t2.Sensor_Id like concat('%', #{sensorId},'%')</if>
|
|
|
|
|
<if test="sensorName != null and sensorName != ''">and t2.Sensor_Name like concat('%', #{sensorName},
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
|