Commit 026337f7 by levphon

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

1 parent 17842de8
......@@ -41,7 +41,7 @@ public interface DeviceFeignService {
* @return
*/
@GetMapping(value = "/getOrStoreDeviceBySn")
R<DeviceDTO> getOrStoreDeviceBySn(@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 {
}
@Override
public R<DeviceDTO> getOrStoreDeviceBySn(String sn, Boolean storeIfNotExists) {
public R<DeviceDTO> getOrStoreDeviceBySn(String sn, boolean storeIfNotExists) {
log.info("getDeviceBySn 熔断啦==={}", cause.getMessage());
return R.ok("无数据");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!