|
|
@@ -84,7 +84,7 @@ public class DeviceController {
|
|
|
@RequestMapping(value = "updateDeviceState", method = {RequestMethod.POST})
|
|
|
public ResultContent updateDeviceState(@RequestBody DeviceInfoUpdateRemark param) {
|
|
|
Assert.hasText(param.getDeviceId(), "ID不能为空");
|
|
|
- if (param.getState() != null) {
|
|
|
+ if (param.getState() == null) {
|
|
|
return ResultContent.buildFail("state不能为空");
|
|
|
}
|
|
|
return deviceInfoService.updateDeviceState(param);
|