Commit 7d0497f4 by levphon

批量查设备位置(含是否在线判断)

1 parent f7f8ebe5
......@@ -44,4 +44,9 @@ public class GpsBsData implements Serializable {
*/
private Boolean bsVerifyResult = false;
/**
* Wifi有效位置验证结果,默认不通过(沃达夫设备,仅参考)
*/
private Boolean wifiVerifyResult = false;
}
......@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;
/**
* @author wangxw
......@@ -76,6 +77,16 @@ public interface GpsBsFeignService {
@GetMapping(value = "/single")
R<GpsBsData> getLastGpsBsBySn(@RequestParam(value = "sn") String sn, @RequestParam(value = "deviceCode") String deviceCode);
/**
* 批量获取设备的最新位置和基站数据
*
* @param snsMap
* @return
*/
@GetMapping(value = "/batch")
R<List<GpsBsData>> getLastGpsBsBySns(@RequestBody Map<String, Integer> snsMap);
/**
* 获取设备的历史轨迹
*
......
......@@ -32,6 +32,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
* @author wangxw
......@@ -78,6 +79,12 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
}
@Override
public R<List<GpsBsData>> getLastGpsBsBySns(Map<String, Integer> snsMap) {
log.info("getLastGpsBsBySns 熔断啦==={}", cause.getMessage());
return R.error("无数据");
}
@Override
public R<List<GpsLocation>> getLastGpsBsHistoryBySn(LocationHistoryRequest request) {
log.info("getLastGpsBsHistoryBySn 熔断啦==={}", 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!