| 123456789101112131415161718192021222324252627282930313233343536 |
- package cn.com.goldenwater.dcproj.controller;
- import cn.com.goldenwater.dcproj.model.BisInspTaskScheduler;
- import cn.com.goldenwater.dcproj.param.BisInspTaskSchedulerParam;
- import cn.com.goldenwater.dcproj.service.BisInspTaskSchedulerService;
- import cn.com.goldenwater.dcproj.task.TaskInitService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.quartz.Scheduler;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * @author
- */
- @Api(value = "刷新任务", tags = "刷新任务")
- @RestController
- @RequestMapping("/refresh/task")
- public class RefreshTaskController {
- private Logger log = LoggerFactory.getLogger(getClass());
- @Autowired
- private TaskInitService taskInitService;
- @ApiOperation(value = "刷新任务")
- @GetMapping(value = "")
- public void refreshTask() {
- log.info(" ------ REFRESH TASK START ------ ");
- taskInitService.init();
- }
- }
|