Commit 934013c5 by 杨林龙

优化首页报警列表排序

1 parent f1632789
......@@ -50,13 +50,6 @@ public class OfflineAlarmVO {
private Date lastBsTime;
/**
* 激活时间
**/
@ApiModelProperty("激活时间*/")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activeDate;
/**
* 车辆ID
*/
@ApiModelProperty("车辆ID")
......
......@@ -57,7 +57,7 @@
and td.source = 1
and tef.del_flag = 0
and DATE_FORMAT(taef.alarm_time, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
order by taef.alarm_time desc,taefId desc
order by alarmTime desc,taefId desc
</select>
<select id="countActiveDeviceFenceAlarm" resultType="java.lang.Integer">
......
......@@ -30,7 +30,7 @@
tv.owner_name as ownerName,
tvd.sn as sn,
tv.vin as vin,
tvd.created_date as activeDate,
tv.created_date as activeDate,
tdl.last_gps_time as lastGpsTime,
tdl.last_bs_time as lastBsTime
from t_vehicle tv
......@@ -49,6 +49,6 @@
or (tdl.last_gps_time &lt; #{offlineStartTime} and tdl.last_bs_time is null)
)
</if>
order by tv.created_date desc,vdId desc
order by activeDate desc,vdId desc
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!