Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
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 ba31f418
authored
Sep 13, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除不必要的代码
1 parent
c6eaebab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/api/GpsBsApiController.java
src/main/java/cn/com/glsx/devicemonitor/modules/api/GpsBsApiController.java
View file @
ba31f41
...
@@ -109,23 +109,4 @@ public class GpsBsApiController implements GpsBsService {
...
@@ -109,23 +109,4 @@ public class GpsBsApiController implements GpsBsService {
return
R
.
ok
().
data
(
deviceLocaBoList
);
return
R
.
ok
().
data
(
deviceLocaBoList
);
}
}
/**
* 设备监控信息
* @param request
* @return
*/
@ApiOperation
(
value
=
"车辆监控信息"
)
@GetMapping
(
value
=
"/devicemonitorinfo2"
)
@Override
public
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo2
(
DeviceLocationRequest
request
)
{
if
(!
DeviceTypeRelationEnum
.
findByDeviceCode
(
request
.
getDeviceCode
()).
equals
(
DeviceTypeRelationEnum
.
GPS
))
{
return
R
.
error
(
BussinessExceptionEnum
.
UNSUPORT_DEVICE
.
getCode
(),
BussinessExceptionEnum
.
UNSUPORT_DEVICE
.
getMessage
());
}
//离线时间
Long
offlineTime
=
ConstantsDevice
.
OFFLINE_TIME_OTHER
;
List
<
DeviceLocationBo
>
deviceLocaBoList
=
monitorService
.
getDeviceMonitorInfo
(
request
.
getSns
(),
offlineTime
,
DeviceTypeRelationEnum
.
findByDeviceCode
(
request
.
getDeviceCode
()));
return
R
.
ok
().
data
(
deviceLocaBoList
);
}
}
}
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