Commit 3c197ce8 authored by tangwei's avatar tangwei

修改sql

parent 23e14a35
...@@ -13,16 +13,16 @@ ...@@ -13,16 +13,16 @@
WHEN 'false' then '恢复' WHEN 'false' then '恢复'
ELSE event_movement end ) as eventMovement ELSE event_movement end ) as eventMovement
from from
fault_alarm_event fault_alarm_event
<where> <where>
<if test="gatewayId != null and gatewayId != ''"> <if test="gatewayId != null and gatewayId != ''">
gateway_id = #{gatewayId} gateway_id = #{gatewayId}
</if> </if>
<if test="stationId != null and stationId != ''"> <if test="stationId != null and stationId != ''">
station_id = #{stationId} station_id = #{stationId}
</if> </if>
</where> </where>
order by sort desc limit #{current},#{size} order by event_time desc
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment