Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 dd34682c
authored
May 26, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化报表查询逻辑
1 parent
cbc0896b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
View file @
dd34682
...
...
@@ -105,6 +105,10 @@ public class VehicleMonitorSevice {
log
.
info
(
"调用ICE接口查询历史轨迹数据"
);
List
<
TrackModelExport
>
trackModelList
=
new
ArrayList
<>();
VehicleDevice
vehicleDevice
=
vehicleDeviceMapper
.
getVehicleDeviceBySn
(
monitorQueryVo
.
getSn
());
if
(
vehicleDevice
==
null
)
{
// 没有查询到历史轨迹数据
throw
new
AdminException
(
ResultEnum
.
TRACKHISTORY_HAS_NO_DATA
);
}
Vehicle
vehicle
=
vehicleMapper
.
selectById
(
vehicleDevice
.
getVehicleId
());
R
gpsHistory
=
gpsBsService
.
getLastGpsBsHistoryBySn
(
monitorQueryVo
.
getSn
(),
DeviceTypeRelationEnum
.
GPS
.
getDeviceCode
(),
monitorQueryVo
.
getStartTime
(),
monitorQueryVo
.
getEndTime
());
if
(
gpsHistory
.
getData
()
==
null
)
{
...
...
@@ -215,6 +219,7 @@ public class VehicleMonitorSevice {
/**
* 查找最外层的基础信息
*
* @param retLocation
*/
private
void
buildBaseInfo
(
DeviceLocationBo
retLocation
,
String
sn
)
{
...
...
@@ -231,6 +236,7 @@ public class VehicleMonitorSevice {
/**
* 构建断电报警信息
*
* @param location
* @param sn
*/
...
...
@@ -257,6 +263,7 @@ public class VehicleMonitorSevice {
/**
* 设置基站或gps的信息
*
* @param location
* @param locatType
* @return
...
...
@@ -275,6 +282,7 @@ public class VehicleMonitorSevice {
/**
* 解析设备的状态
*
* @param gpsLocation
* @param bsLocation
* @param location
...
...
@@ -317,7 +325,6 @@ public class VehicleMonitorSevice {
}
/**
*
* @param location
* @param speed
* @param trackTime
...
...
@@ -342,6 +349,7 @@ public class VehicleMonitorSevice {
/**
* 解析有源设备的状态
*
* @param location
* @param speed
* @param trackTime
...
...
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