|
@@ -8,6 +8,7 @@ import com.sckw.slope.detection.model.dos.mysql.KwsReportTemplate;
|
|
|
import jakarta.annotation.Resource;
|
|
import jakarta.annotation.Resource;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
@@ -31,7 +32,7 @@ public class ReportTemplateTaskService {
|
|
|
/**
|
|
/**
|
|
|
* 报表生成定时任务-天
|
|
* 报表生成定时任务-天
|
|
|
*/
|
|
*/
|
|
|
- // @Scheduled(cron = "0 0 0 ? * *")
|
|
|
|
|
|
|
+ // @Scheduled(cron = "* * * * * *")
|
|
|
public void templateTaskDay() {
|
|
public void templateTaskDay() {
|
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
@@ -43,7 +44,7 @@ public class ReportTemplateTaskService {
|
|
|
LocalDateTime localDateTime = LocalDateTime.now().minusDays(1);
|
|
LocalDateTime localDateTime = LocalDateTime.now().minusDays(1);
|
|
|
LocalDateTime dateEnd = com.sckw.excel.utils.DateUtil.localDateToLocalDateTimeEnd(localDateTime.toLocalDate());
|
|
LocalDateTime dateEnd = com.sckw.excel.utils.DateUtil.localDateToLocalDateTimeEnd(localDateTime.toLocalDate());
|
|
|
LocalDateTime dateStart = com.sckw.excel.utils.DateUtil.localDateToLocalDateTimeStart(localDateTime.toLocalDate());
|
|
LocalDateTime dateStart = com.sckw.excel.utils.DateUtil.localDateToLocalDateTimeStart(localDateTime.toLocalDate());
|
|
|
-
|
|
|
|
|
|
|
+ //
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -54,7 +55,7 @@ public class ReportTemplateTaskService {
|
|
|
* 报表生成定时任务-周
|
|
* 报表生成定时任务-周
|
|
|
*/
|
|
*/
|
|
|
// @Scheduled(cron = "0 0 0 ? * *")
|
|
// @Scheduled(cron = "0 0 0 ? * *")
|
|
|
- public void templateTaskWeek() {
|
|
|
|
|
|
|
+ /*public void templateTaskWeek() {
|
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
|
.eq(KwsReportTemplate::getDelFlag, 0));
|
|
.eq(KwsReportTemplate::getDelFlag, 0));
|
|
@@ -68,13 +69,13 @@ public class ReportTemplateTaskService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 报表生成定时任务-月
|
|
* 报表生成定时任务-月
|
|
|
*/
|
|
*/
|
|
|
// @Scheduled(cron = "0 0 0 ? * *")
|
|
// @Scheduled(cron = "0 0 0 ? * *")
|
|
|
- public void templateTaskMonth() {
|
|
|
|
|
|
|
+ /*public void templateTaskMonth() {
|
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
List<KwsReportTemplate> kwsReportTemplates = reportTemplateMapper.selectList(new LambdaQueryWrapper<KwsReportTemplate>()
|
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
.eq(KwsReportTemplate::getStatus, 0)
|
|
|
.eq(KwsReportTemplate::getDelFlag, 0));
|
|
.eq(KwsReportTemplate::getDelFlag, 0));
|
|
@@ -86,5 +87,5 @@ public class ReportTemplateTaskService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
}
|
|
}
|