| | |
| | | |
| | | /** |
| | | * Created by Monkey D. Luffy on 2023.07.25 |
| | | * 徐工汉云..............以下.............上饶江铜.............自动补空板 |
| | | * 徐工汉云..............以下.............上饶江铜.............条码上传中控 |
| | | */ |
| | | @Component |
| | | public class BarcodeUploadScheduler { |
| | |
| | | @Autowired |
| | | private BarcodeUploadHandler barcodeUploadHandler; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){//条码上传中控 |
| | | int[] staNos =new int[]{216,220}; |
| | | int[] staNos =new int[]{215,219}; |
| | | for (int staNo : staNos){ |
| | | ReturnT<String> result = barcodeUploadHandler.start(staNo); |
| | | if (result.getCode()==200){ |