Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor-api
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 55ef590a
authored
Dec 25, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化定位接口
1 parent
220ce731
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsFeignService.java
View file @
55ef590
...
@@ -98,10 +98,12 @@ public interface GpsBsFeignService {
...
@@ -98,10 +98,12 @@ public interface GpsBsFeignService {
/**
/**
* 根据设备号和报警时间获取报警时间的定位
* 根据设备号和报警时间获取报警时间的定位
*
*
* @param sn 设备号
* @param sn 设备号
* @param alarmTime 报警时间
* @param deviceCode 设备类型
* @return 报警时间的定位数据
* @param alarmStartTime 报警开始时间
* @param alarmEndTime 报警结束时间
* @return 定位数据
*/
*/
@GetMapping
(
value
=
"/getLocationOfAlarmTime"
)
@GetMapping
(
value
=
"/getLocationOfAlarmTime"
)
R
<
GpsBsData
>
getLocationOfAlarmTime
(
@RequestParam
String
sn
,
@RequestParam
String
alarm
Time
);
R
<
GpsBsData
>
getLocationOfAlarmTime
(
@RequestParam
String
sn
,
@RequestParam
String
deviceCode
,
@RequestParam
String
alarmStartTime
,
@RequestParam
String
alarmEnd
Time
);
}
}
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
View file @
55ef590
...
@@ -90,8 +90,9 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
...
@@ -90,8 +90,9 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
}
}
@Override
@Override
public
R
<
GpsBsData
>
getLocationOfAlarmTime
(
String
sn
,
String
alarm
Time
)
{
public
R
<
GpsBsData
>
getLocationOfAlarmTime
(
String
sn
,
String
deviceCode
,
String
alarmStartTime
,
String
alarmEnd
Time
)
{
log
.
info
(
"getLocationOfAlarmTime 熔断啦==={}"
,
cause
.
getMessage
());
log
.
info
(
"getLocationOfAlarmTime 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
error
(
"无数据"
);
return
R
.
error
(
"无数据"
);
}
}
}
}
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