浏览代码

监控调阅任务

ouyang 2 年之前
父节点
当前提交
269e42de4b

+ 4 - 1
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/retrieval/service/impl/CoreMonitoringRetrievalTaskServiceImpl.java

@@ -37,6 +37,7 @@ import org.springframework.beans.factory.config.ConfigurableBeanFactory;
 import org.springframework.context.annotation.DependsOn;
 import org.springframework.context.annotation.Lazy;
 import org.springframework.context.annotation.Scope;
+import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
@@ -217,7 +218,7 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
     public int deleteCoreMonitoringRetrievalTaskById(Long id) {
         return coreMonitoringRetrievalTaskMapper.deleteById(id);
     }
-
+    @Async
     /**
      * 无周期任务生成
      */
@@ -243,6 +244,7 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
      *
      * @param taskTime
      */
+    @Async
     @Override
     public void dayTask(LocalDate taskTime) {
         if (ObjectUtil.isEmpty(taskTime)) {
@@ -276,6 +278,7 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
      *
      * @param taskTime
      */
+    @Async
     @Override
     public void monthTask(LocalDate taskTime) {
         if (ObjectUtil.isEmpty(taskTime)) {