eight
2024-09-29 fb1c355f7b38d493816b4cf94a20060887c524a0
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java
@@ -7,6 +7,7 @@
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Operation;
import java.time.LocalDate;
import java.util.*;
import java.io.IOException;
@@ -80,6 +81,16 @@
        return success(BeanUtils.toBean(device, DeviceRespVO.class));
    }
    @PostMapping("/update-dev-state")
    @Operation(summary = "更新设备状态")
    @Parameter(name = "devId", description = "编号", required = true, example = "1024")
    @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
    public CommonResult<Integer> updateDeviceState(@Valid @RequestBody DeviceSaveReqVO updateReqVO) {
        updateReqVO.setStateDate( LocalDate.now() );
        Integer ret =  deviceService.updateDeviceState(updateReqVO);
        return success(ret);
    }
    @GetMapping("/page")
    @Operation(summary = "获得设备分页")
    @PreAuthorize("@ss.hasPermission('ecg:device:query')")