| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private ErrorStockHandler errorStockHandler; |
| | | |
| | | //@Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/60 * * * * ? ") |
| | | private void execute(){ |
| | | ReturnT<String> returnT = errorStockHandler.start(); |
| | | if (!returnT.isSuccess()) { |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/60 * * * * ? ") |
| | | private void executeAgv(){ |
| | | ReturnT<String> returnT = errorStockHandler.startAgv(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | |
| | | // @Autowired |
| | | // private BasErrLogService basErrLogService; |
| | | // @Autowired |