|
@@ -19,6 +19,8 @@ import java.time.LocalDateTime;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static org.springblade.modules.api.task.ConsignSchedulingTask.isStartTask;
|
|
|
+
|
|
|
@Component
|
|
|
public class GrantSchedulingTask implements SchedulingConfigurer {
|
|
|
|
|
@@ -27,7 +29,6 @@ public class GrantSchedulingTask implements SchedulingConfigurer {
|
|
|
private static final String PATTERN_DATE = org.springblade.core.tool.utils.DateUtil.PATTERN_DATE;
|
|
|
|
|
|
private static final String TASK_NAME = "【解冻支付宝账号】";
|
|
|
-
|
|
|
@Autowired
|
|
|
private IOrderGrantService orderGrantService;
|
|
|
|
|
@@ -36,6 +37,10 @@ public class GrantSchedulingTask implements SchedulingConfigurer {
|
|
|
|
|
|
@Override
|
|
|
public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
|
|
|
+ if(!isStartTask){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
Runnable task = new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|