diff --git a/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/deviceinfo/DeviceInfoController.java b/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/deviceinfo/DeviceInfoController.java index 9c6a298f..32040d4d 100644 --- a/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/deviceinfo/DeviceInfoController.java +++ b/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/deviceinfo/DeviceInfoController.java @@ -104,7 +104,7 @@ public class DeviceInfoController { @PutMapping("/wf/property") @Operation(summary = "水肥机-属性修改") - public CommonResult updateDevicePropertiesForWf(UpdateDevicePropertiesForWfReqVO reqVO) { + public CommonResult updateDevicePropertiesForWf(@Valid @RequestBody UpdateDevicePropertiesForWfReqVO reqVO) { Boolean res = deviceInfoService.updateDevicePropertiesForWf(reqVO); return success(res); }