Commit 4ee8ad78 by 杨林龙

1.24.0 增加批量查询定位接口

1 parent f93efa87
......@@ -58,6 +58,15 @@ public interface GpsBsFeignService {
R<List<GpsBsData>> getLastGpsBsBatch(@RequestBody List<String> snList);
/**
* 通过设备号批量查询 设备位置信息
*
* @param snList 设备号集合
* @return
*/
@PostMapping(value = "/lastgpsbs/simple/batch", consumes = MediaType.APPLICATION_JSON_VALUE)
R<List<GpsBsData>> getLastGpsBsSimpleBatch(@RequestBody List<String> snList);
/**
* 通过设备号 和激活时间集合 获取GPS定位信息
*
* @param gpsBsFirstBatchRequestList
......@@ -116,6 +125,7 @@ public interface GpsBsFeignService {
/**
* 通过经纬度获取地址
*
* @param lngLats 经纬度集合
* @return 经纬度对应的地址
*/
......
......@@ -63,6 +63,12 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
}
@Override
public R<List<GpsBsData>> getLastGpsBsSimpleBatch(List<String> snList) {
log.info("getLastGpsBsSimpleBatch 熔断啦==={}", cause.getMessage());
return R.error("无数据");
}
@Override
public R<List<GpsBsData>> locationCheck(DeviceLocationRequest deviceLocationRequest) {
log.info("check 熔断啦==={}", cause.getMessage());
return R.error("无数据");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!