|
@@ -187,7 +187,7 @@ public class Task implements SchedulingConfigurer {
|
|
|
companyReport.setCompany_name(company.getCompany_name());
|
|
companyReport.setCompany_name(company.getCompany_name());
|
|
|
companyReport.setBuild_id(company.getBuild_id());
|
|
companyReport.setBuild_id(company.getBuild_id());
|
|
|
|
|
|
|
|
- CompletableFuture.runAsync(()->{
|
|
|
|
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
companyReportService.generateInsertReport(companyReport);
|
|
companyReportService.generateInsertReport(companyReport);
|
|
|
}, ThreadPoolUtil.getInstance());
|
|
}, ThreadPoolUtil.getInstance());
|
|
|
//threadPool.execute(() -> companyReportService.generateInsertReport(companyReport));
|
|
//threadPool.execute(() -> companyReportService.generateInsertReport(companyReport));
|
|
@@ -205,7 +205,7 @@ public class Task implements SchedulingConfigurer {
|
|
|
@Scheduled(cron = "0/15 0 0 * * ?")
|
|
@Scheduled(cron = "0/15 0 0 * * ?")
|
|
|
@Async
|
|
@Async
|
|
|
public void getHoliday() {
|
|
public void getHoliday() {
|
|
|
- System.out.println("测试定时");
|
|
|
|
|
|
|
+ log.info("执行定时任务获取节假日");
|
|
|
String year = DateUtil.getCurrentDateString("yyyy");
|
|
String year = DateUtil.getCurrentDateString("yyyy");
|
|
|
sysConfigService.addYearWorkDay(year);
|
|
sysConfigService.addYearWorkDay(year);
|
|
|
}
|
|
}
|
|
@@ -380,7 +380,7 @@ public class Task implements SchedulingConfigurer {
|
|
|
* @Author: huZhiHao
|
|
* @Author: huZhiHao
|
|
|
* @Description: 向第二天参与活动的人发送短信
|
|
* @Description: 向第二天参与活动的人发送短信
|
|
|
* @Date: 2021/5/13
|
|
* @Date: 2021/5/13
|
|
|
- **/
|
|
|
|
|
|
|
+ **/
|
|
|
@Scheduled(cron = "0 0 14 * * ?")
|
|
@Scheduled(cron = "0 0 14 * * ?")
|
|
|
@Async
|
|
@Async
|
|
|
public void sendActivityNotification() {
|
|
public void sendActivityNotification() {
|