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 9ed8b4de
authored
Sep 13, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除测试代码
1 parent
3afa8335
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
12 deletions
src/main/java/cn/com/glsx/devicemonitor/api/feign/DeviceFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/DeviceFeignService.java
View file @
9ed8b4d
...
@@ -5,11 +5,9 @@ import cn.com.glsx.devicemonitor.api.dto.response.DeviceStatusModel;
...
@@ -5,11 +5,9 @@ import cn.com.glsx.devicemonitor.api.dto.response.DeviceStatusModel;
import
cn.com.glsx.devicemonitor.api.feign.factory.DeviceServiceFallbackFactory
;
import
cn.com.glsx.devicemonitor.api.feign.factory.DeviceServiceFallbackFactory
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.plat.core.web.R
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.validation.constraints.NotBlank
;
/**
/**
* 设备查询相关服务
* 设备查询相关服务
...
...
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsService.java
View file @
9ed8b4d
...
@@ -39,8 +39,6 @@ public interface GpsBsService {
...
@@ -39,8 +39,6 @@ public interface GpsBsService {
@GetMapping
(
value
=
"/devicemonitorinfo"
)
@GetMapping
(
value
=
"/devicemonitorinfo"
)
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo
(
@RequestParam
(
value
=
"sns"
)
String
sns
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo
(
@RequestParam
(
value
=
"sns"
)
String
sns
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
@GetMapping
(
value
=
"/devicemonitorinfo2"
)
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo2
(
DeviceLocationRequest
request
);
/**
/**
* 通过设备号批量查询 设备位置信息
* 通过设备号批量查询 设备位置信息
...
@@ -58,7 +56,7 @@ public interface GpsBsService {
...
@@ -58,7 +56,7 @@ public interface GpsBsService {
* @param deviceCode
* @param deviceCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/single"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/single"
)
R
<
GpsBsData
>
getLastGpsBsBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
R
<
GpsBsData
>
getLastGpsBsBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
/**
/**
...
@@ -67,7 +65,7 @@ public interface GpsBsService {
...
@@ -67,7 +65,7 @@ public interface GpsBsService {
* @param request
* @param request
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/single/history"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/single/history"
)
R
<
List
<
GpsLocation
>>
getLastGpsBsHistoryBySn
(
LocationHistoryRequest
request
);
R
<
List
<
GpsLocation
>>
getLastGpsBsHistoryBySn
(
LocationHistoryRequest
request
);
}
}
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
View file @
9ed8b4d
...
@@ -52,12 +52,6 @@ public class GpsBsServiceFallbackImpl implements GpsBsService {
...
@@ -52,12 +52,6 @@ public class GpsBsServiceFallbackImpl implements GpsBsService {
}
}
@Override
@Override
public
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo2
(
DeviceLocationRequest
request
)
{
log
.
info
(
"listDeviceMonitorInfo2 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
ok
(
"无数据"
);
}
@Override
public
R
getLastGpsBsBatch
(
GpsBsLastBatchRequest
gpsBsLastBatchRequest
)
{
public
R
getLastGpsBsBatch
(
GpsBsLastBatchRequest
gpsBsLastBatchRequest
)
{
log
.
info
(
"getLastGpsBsBatch 熔断啦==={}"
,
cause
.
getMessage
());
log
.
info
(
"getLastGpsBsBatch 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
ok
(
"无数据"
);
return
R
.
ok
(
"无数据"
);
...
...
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