From b860961095fc98008284de5b47855b73cbcb5d94 Mon Sep 17 00:00:00 2001 From: bupengxiang Date: Tue, 16 May 2023 09:44:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E4=BF=9D=E5=AF=86?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/adc/da/report/Timer/secrecyDDLTimer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/adc-da-report/src/main/java/com/adc/da/report/Timer/secrecyDDLTimer.java b/adc-da-report/src/main/java/com/adc/da/report/Timer/secrecyDDLTimer.java index 906f8de..e27a010 100644 --- a/adc-da-report/src/main/java/com/adc/da/report/Timer/secrecyDDLTimer.java +++ b/adc-da-report/src/main/java/com/adc/da/report/Timer/secrecyDDLTimer.java @@ -2,6 +2,7 @@ package com.adc.da.report.Timer; import com.adc.da.report.dao.mysql.ReportDao; import com.adc.da.report.eo.ReportEntity; +import com.adc.da.report.service.impl.IReportServiceImpl; import com.adc.da.util.utils.CollectionUtils; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -25,7 +26,11 @@ public class secrecyDDLTimer { @Autowired ReportDao reportDao; + @Autowired + IReportServiceImpl iReportService; + // @Scheduled(cron="0 0 0 * * *") +// @Scheduled(cron="0 0/1 * * * ?") @Scheduled(cron="0 0/10 * * * ?") public void timingOpen() { log.info("**********************保密到期定时任务开始**********************"); @@ -34,6 +39,7 @@ public class secrecyDDLTimer { entity.forEach(e -> { e.setConfidentialLevel("公开(内部公开)"); }); + iReportService.updateBatchById(entity); } log.info("**********************保密到期定时任务结束**********************"); }