src/main/java/com/zy/asrs/task/OverYearLogScheduler.java
@@ -19,12 +19,18 @@ @Autowired private OverYearLogHandler overYearLogHandler; @Scheduled(cron = "0/3 * * * * ? ") @Scheduled(cron = "0/1 * * * * ? ") private void execute(){ ReturnT<String> returnT = overYearLogHandler.start(); if (!returnT.isSuccess()) { log.error(returnT.getMsg()); } } @Scheduled(cron = "* * 1 * * ? ") private void executeOrderLog() { ReturnT<String> returnT = overYearLogHandler.start2(); if (!returnT.isSuccess()) { log.error(returnT.getMsg()); } } }