Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 934013c5
authored
Jul 22, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化首页报警列表排序
1 parent
f1632789
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
src/main/java/cn/com/glsx/app/modules/model/view/OfflineAlarmVO.java
src/main/resources/mapper/AlarmElectricFenceMapper.xml
src/main/resources/mapper/DeviceLocationMapper.xml
src/main/java/cn/com/glsx/app/modules/model/view/OfflineAlarmVO.java
View file @
934013c
...
@@ -50,13 +50,6 @@ public class OfflineAlarmVO {
...
@@ -50,13 +50,6 @@ public class OfflineAlarmVO {
private
Date
lastBsTime
;
private
Date
lastBsTime
;
/**
/**
* 激活时间
**/
@ApiModelProperty
(
"激活时间*/"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
activeDate
;
/**
* 车辆ID
* 车辆ID
*/
*/
@ApiModelProperty
(
"车辆ID"
)
@ApiModelProperty
(
"车辆ID"
)
...
...
src/main/resources/mapper/AlarmElectricFenceMapper.xml
View file @
934013c
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
and td.source = 1
and td.source = 1
and tef.del_flag = 0
and tef.del_flag = 0
and DATE_FORMAT(taef.alarm_time, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
and DATE_FORMAT(taef.alarm_time, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
order by
taef.alarm_t
ime desc,taefId desc
order by
alarmT
ime desc,taefId desc
</select>
</select>
<select
id=
"countActiveDeviceFenceAlarm"
resultType=
"java.lang.Integer"
>
<select
id=
"countActiveDeviceFenceAlarm"
resultType=
"java.lang.Integer"
>
...
...
src/main/resources/mapper/DeviceLocationMapper.xml
View file @
934013c
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
tv.owner_name as ownerName,
tv.owner_name as ownerName,
tvd.sn as sn,
tvd.sn as sn,
tv.vin as vin,
tv.vin as vin,
tv
d
.created_date as activeDate,
tv.created_date as activeDate,
tdl.last_gps_time as lastGpsTime,
tdl.last_gps_time as lastGpsTime,
tdl.last_bs_time as lastBsTime
tdl.last_bs_time as lastBsTime
from t_vehicle tv
from t_vehicle tv
...
@@ -49,6 +49,6 @@
...
@@ -49,6 +49,6 @@
or (tdl.last_gps_time
<
#{offlineStartTime} and tdl.last_bs_time is null)
or (tdl.last_gps_time
<
#{offlineStartTime} and tdl.last_bs_time is null)
)
)
</if>
</if>
order by
tv.created_d
ate desc,vdId desc
order by
activeD
ate desc,vdId desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment