mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2026-04-19 13:18:38 +00:00
fix: 【IoT 物联网】修复 IotDeviceServiceImpl 中的更新支持逻辑,确保在不支持更新时抛出异常
This commit is contained in:
@@ -382,7 +382,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 2.2.2 如果存在,判断是否允许更新
|
// 2.2.2 如果存在,判断是否允许更新
|
||||||
if (updateSupport) {
|
if (!updateSupport) {
|
||||||
throw exception(DEVICE_KEY_EXISTS);
|
throw exception(DEVICE_KEY_EXISTS);
|
||||||
}
|
}
|
||||||
updateDevice(new IotDeviceSaveReqVO().setId(existDevice.getId())
|
updateDevice(new IotDeviceSaveReqVO().setId(existDevice.getId())
|
||||||
|
|||||||
Reference in New Issue
Block a user