src/main/java/com/zy/asrs/task/OverYearLogScheduler.java
@@ -20,11 +20,19 @@ private OverYearLogHandler overYearLogHandler; @Scheduled(cron = "0/1 * * * * ? ") private void execute(){ 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()); } } }