From 8766cfc344d3635cd7e50a7c674cd5feb54d5a3d Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期一, 02 十二月 2024 09:30:35 +0800 Subject: [PATCH] 预警mq监听并发送 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/job/controller/admin/ScheduleJobLogController.java | 37 +++++++------------------------------ 1 files changed, 7 insertions(+), 30 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/controller/admin/ScheduleJobLogController.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/controller/admin/ScheduleJobLogController.java index 7d9d0a4..794a205 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/controller/admin/ScheduleJobLogController.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/controller/admin/ScheduleJobLogController.java @@ -1,27 +1,16 @@ -/** - * Copyright (c) 2018 人人开源 All rights reserved. - * - * https://www.renren.io - * - * 版权所有,侵权必究! - */ - package com.iailab.module.shasteel.job.controller.admin; -import com.iailab.framework.common.constant.Constant; import com.iailab.framework.common.page.PageData; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.module.shasteel.job.dto.ScheduleJobLogDTO; import com.iailab.module.shasteel.job.service.ScheduleJobLogService; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.Parameters; -import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; -import javax.annotation.Resource; import java.util.Map; + +import static com.iailab.framework.common.pojo.CommonResult.success; /** * 定时任务日志 @@ -29,34 +18,22 @@ * @author Mark sunlightcs@gmail.com */ @RestController -@RequestMapping("/sys/scheduleLog") -@Tag(name = "定时任务日志") +@RequestMapping("/mcs/scheduleLog") public class ScheduleJobLogController { - @Resource + @Autowired private ScheduleJobLogService scheduleJobLogService; @GetMapping("page") - @Operation(summary = "分页") - @Parameters({ - @Parameter(name = Constant.PAGE, description = "当前页码,从1开始", required = true) , - @Parameter(name = Constant.LIMIT, description = "每页显示记录数", required = true) , - @Parameter(name = Constant.ORDER_FIELD, description = "排序字段") , - @Parameter(name = Constant.ORDER, description = "排序方式,可选值(asc、desc)") , - @Parameter(name = "jobId", description = "jobId") - }) - @PreAuthorize("@ss.hasPermission('sys:schedule:log')") public CommonResult<PageData<ScheduleJobLogDTO>> page(@RequestParam Map<String, Object> params){ PageData<ScheduleJobLogDTO> page = scheduleJobLogService.page(params); - return new CommonResult<PageData<ScheduleJobLogDTO>>().setData(page); + return success(page); } @GetMapping("{id}") - @Operation(summary = "信息") - @PreAuthorize("@ss.hasPermission('sys:schedule:log')") public CommonResult<ScheduleJobLogDTO> info(@PathVariable("id") Long id){ ScheduleJobLogDTO log = scheduleJobLogService.get(id); - return new CommonResult<ScheduleJobLogDTO>().setData(log); + return success(log); } } \ No newline at end of file -- Gitblit v1.9.3