From 4f27e2a21aa7c0cbd07447b43fc3b83fd1525f88 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 10 七月 2023 15:07:25 +0800 Subject: [PATCH] 修改 --- src/main/java/com/boying/job/ReadFileScheduled2.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/boying/job/ReadFileScheduled2.java b/src/main/java/com/boying/job/ReadFileScheduled2.java index f4e134a..3baa9ab 100644 --- a/src/main/java/com/boying/job/ReadFileScheduled2.java +++ b/src/main/java/com/boying/job/ReadFileScheduled2.java @@ -9,6 +9,7 @@ import com.boying.service.OrderRecordService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.io.IOException; @@ -36,12 +37,12 @@ @Autowired private ErrorLogService errorLogService; - //@Scheduled(cron = "0 30 14 * * ?") + //@Scheduled(cron = "0 40 18 * * ?") public void execute() throws Exception { - Path path = Paths.get("E:\\ycCheckBill\\Bank_PSBC_20230422.txt"); + Path path = Paths.get("E:\\ycCheckBill\\Bank_PSBC_20230421.txt"); - DateTime start = DateUtil.parse( "2023-04-21 22:30:00"); - DateTime end = DateUtil.parse("2023-04-22 22:29:59"); + DateTime start = DateUtil.parse( "2023-04-20 22:30:00"); + DateTime end = DateUtil.parse("2023-04-21 22:29:59"); QueryWrapper<OrderRecord> wrapper = new QueryWrapper<>(); wrapper.lambda() -- Gitblit v1.9.1