Commit e437281f by levphon

新增位置点验证接口

1 parent 66e58b2e
...@@ -34,6 +34,16 @@ public interface DeviceFeignService { ...@@ -34,6 +34,16 @@ public interface DeviceFeignService {
R<DeviceDTO> getDeviceBySn(@RequestParam(value = "sn") String sn); R<DeviceDTO> getDeviceBySn(@RequestParam(value = "sn") String sn);
/** /**
* 根据设备号查询设备信息
*
* @param sn
* @param storeIfNotExists
* @return
*/
@GetMapping(value = "/getDeviceBySn")
R<DeviceDTO> getDeviceBySn(@RequestParam(value = "sn") String sn, Boolean storeIfNotExists);
/**
* 获取设备的状态 * 获取设备的状态
* *
* @param sn * @param sn
......
...@@ -25,6 +25,12 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService { ...@@ -25,6 +25,12 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
} }
@Override @Override
public R<DeviceDTO> getDeviceBySn(String sn, Boolean storeIfNotExists) {
log.info("getDeviceBySn 熔断啦==={}", cause.getMessage());
return R.ok("无数据");
}
@Override
public R<DeviceStatusModel> getDeviceStatusBySn(String sn, Long offlineTime) { public R<DeviceStatusModel> getDeviceStatusBySn(String sn, Long offlineTime) {
log.info("getDeviceStatusBySn 熔断啦==={}", cause.getMessage()); log.info("getDeviceStatusBySn 熔断啦==={}", cause.getMessage());
return R.ok("无数据"); return R.ok("无数据");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!