yang_shj
7 months ago
3 changed files with 1 additions and 39 deletions
@ -1,35 +0,0 @@ |
|||||||
package com.hnac.hzims.scheduled.controller; |
|
||||||
|
|
||||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
||||||
import com.hnac.hzims.scheduled.service.operation.monitor.MonitorService; |
|
||||||
import io.swagger.annotations.Api; |
|
||||||
import io.swagger.annotations.ApiOperation; |
|
||||||
import io.swagger.annotations.ApiParam; |
|
||||||
import lombok.AllArgsConstructor; |
|
||||||
import org.springblade.core.log.annotation.ApiLog; |
|
||||||
import org.springblade.core.tool.api.R; |
|
||||||
import org.springframework.web.bind.annotation.GetMapping; |
|
||||||
import org.springframework.web.bind.annotation.RequestMapping; |
|
||||||
import org.springframework.web.bind.annotation.RequestParam; |
|
||||||
import org.springframework.web.bind.annotation.RestController; |
|
||||||
|
|
||||||
/** |
|
||||||
* @author ysj |
|
||||||
*/ |
|
||||||
@RestController |
|
||||||
@AllArgsConstructor |
|
||||||
@RequestMapping("/scheduled") |
|
||||||
@Api(value = "定时任务", tags = "定时任务") |
|
||||||
public class ScheduledController { |
|
||||||
|
|
||||||
private final MonitorService service; |
|
||||||
|
|
||||||
@ApiLog |
|
||||||
@ApiOperation("集中监控数据加载") |
|
||||||
@GetMapping("/loadMonitoring") |
|
||||||
@ApiOperationSupport(order = 1) |
|
||||||
public R duty(@ApiParam(value = "机构Id", required = true) @RequestParam Long deptId) { |
|
||||||
service.loadMonitoring("2023-10-19"); |
|
||||||
return R.status(true); |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue