rk
2026-06-09 c467370d8741bc05ca7c22d4253c58ac0a979ef5
server/visits/admin_timer/src/main/java/com/doumee/api/HkDeviceTimerController.java
@@ -6,6 +6,7 @@
import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -16,6 +17,7 @@
 * @date 2023/11/30 15:33
 */
@Api(tags = "设备定时器接口")
@Slf4j
@RestController
@RequestMapping("/timer/device")
public class HkDeviceTimerController extends BaseController {
@@ -26,12 +28,14 @@
    @ApiOperation("开启定时查询设备状态")
    @PostMapping("/getAscDeviceStatus")
    public ApiResponse getAscDeviceStatus() {
        log.info("定时任务执行开始:getAscDeviceStatus-查询设备状态");
        hkSyncDeviceService.getAscDeviceStatus();
        return ApiResponse.success("开启定时查询设备状态成功");
    }
    @ApiOperation("更新全部LED屏显内容为默认内容")
    @PostMapping("/allLedDefualtContent")
    public ApiResponse allLedDefualtContent() {
        log.info("定时任务执行开始:allLedDefualtContent-更新LED屏默认内容");
        deviceService.allLedDefualtContent();
        return ApiResponse.success("更新全部LED屏显内容为默认内容");
    }