| | |
| | | package com.zy.asrs.task; |
| | | |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.asrs.task.handler.PltBarcodeLogHandle; |
| | | import com.zy.asrs.task.handler.PltBarcodeLogHandler; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private static final Logger log = LoggerFactory.getLogger(PltBarcodeLogScheduler.class); |
| | | |
| | | @Autowired |
| | | private PltBarcodeLogHandle pltBarcodeLogHandle; |
| | | private PltBarcodeLogHandler pltBarcodeLogHandler; |
| | | |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | private void execute(){ |
| | | ReturnT<String> returnT = pltBarcodeLogHandle.start(); |
| | | ReturnT<String> returnT = pltBarcodeLogHandler.start(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |