|
|
@@ -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)) {
|