Commit 17842de8 by levphon

新增查询或存储设备数据接口

1 parent e437281f
...@@ -40,8 +40,8 @@ public interface DeviceFeignService { ...@@ -40,8 +40,8 @@ public interface DeviceFeignService {
* @param storeIfNotExists * @param storeIfNotExists
* @return * @return
*/ */
@GetMapping(value = "/getDeviceBySn") @GetMapping(value = "/getOrStoreDeviceBySn")
R<DeviceDTO> getDeviceBySn(@RequestParam(value = "sn") String sn, Boolean storeIfNotExists); R<DeviceDTO> getOrStoreDeviceBySn(@RequestParam(value = "sn") String sn, Boolean storeIfNotExists);
/** /**
* 获取设备的状态 * 获取设备的状态
......
...@@ -25,7 +25,7 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService { ...@@ -25,7 +25,7 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
} }
@Override @Override
public R<DeviceDTO> getDeviceBySn(String sn, Boolean storeIfNotExists) { public R<DeviceDTO> getOrStoreDeviceBySn(String sn, Boolean storeIfNotExists) {
log.info("getDeviceBySn 熔断啦==={}", cause.getMessage()); log.info("getDeviceBySn 熔断啦==={}", 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!