|
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
/* |
|
|
|
|
package com.huoran.iasf.controller; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
@ -25,13 +26,15 @@ import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 定时任务 |
|
|
|
|
* |
|
|
|
|
* @author cheney |
|
|
|
|
* @version V1.0 |
|
|
|
|
* @date 2022年7月28日 |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
// @Api(tags = "定时任务")
|
|
|
|
|
// @RestController
|
|
|
|
|
// @RequestMapping("/sysJob")
|
|
|
|
@ -96,9 +99,11 @@ public class SysJobController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 立即执行任务 |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "立即执行任务") |
|
|
|
|
@LogAnnotation(title = "立即执行任务") |
|
|
|
|
@PostMapping("/run") |
|
|
|
@ -109,9 +114,11 @@ public class SysJobController { |
|
|
|
|
return R.success(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 暂停定时任务 |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "暂停定时任务") |
|
|
|
|
@LogAnnotation(title = "暂停定时任务") |
|
|
|
|
@PostMapping("/pause") |
|
|
|
@ -122,9 +129,11 @@ public class SysJobController { |
|
|
|
|
return R.success(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 恢复定时任务 |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "恢复定时任务") |
|
|
|
|
@LogAnnotation(title = "恢复定时任务") |
|
|
|
|
@PostMapping("/resume") |
|
|
|
@ -134,12 +143,14 @@ public class SysJobController { |
|
|
|
|
return R.success(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 判断cron表达式 |
|
|
|
|
* |
|
|
|
|
* @param cronExpression cron表达式 |
|
|
|
|
* @return 是否有误 |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
public static boolean isValidExpression(String cronExpression) { |
|
|
|
|
CronTriggerImpl trigger = new CronTriggerImpl(); |
|
|
|
|
try { |
|
|
|
@ -176,3 +187,4 @@ public class SysJobController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|