|
@@ -83,7 +83,7 @@ public class DeviceController {
|
|
|
@Operation(summary = "启用-禁用 设备")
|
|
@Operation(summary = "启用-禁用 设备")
|
|
|
@RequestMapping(value = "updateDeviceState", method = {RequestMethod.POST})
|
|
@RequestMapping(value = "updateDeviceState", method = {RequestMethod.POST})
|
|
|
public ResultContent updateDeviceState(@RequestBody DeviceInfoUpdateRemark param) {
|
|
public ResultContent updateDeviceState(@RequestBody DeviceInfoUpdateRemark param) {
|
|
|
- Assert.hasText(param.getId(), "ID不能为空");
|
|
|
|
|
|
|
+ Assert.hasText(param.getDeviceId(), "ID不能为空");
|
|
|
if (param.getState() != null) {
|
|
if (param.getState() != null) {
|
|
|
return ResultContent.buildFail("state不能为空");
|
|
return ResultContent.buildFail("state不能为空");
|
|
|
}
|
|
}
|