kongdeqiang
2023-06-05 a41b28d983f46f90a41ff7d2aa47179541c1be99
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()