Commit b1d06f5d by levphon

设备监控

1 parent edbe1c4e
......@@ -44,7 +44,10 @@ public class FeignDeviceController implements DeviceFeignService {
@Override
@GetMapping({"/getOrStoreDeviceBySn"})
public R<DeviceDTO> getOrStoreDeviceBySn(@RequestParam(value = "sn") String sn, boolean storeIfNotExists) {
public R<DeviceDTO> getOrStoreDeviceBySn(@RequestParam(value = "sn") String sn, Boolean storeIfNotExists) {
if (storeIfNotExists == null) {
storeIfNotExists = false;
}
DeviceDTO deviceDTO = deviceService.getDeviceDTOBySn(sn, storeIfNotExists);
return R.ok().data(deviceDTO);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!