| | |
| | | @Autowired |
| | | private PlanOrderHandler planOrderHandler; |
| | | |
| | | |
| | | /** |
| | | * 发货 |
| | | * |
| | | * @return |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute() { |
| | | ReturnT<String> returnT = planOrderHandler.start(); |
| | | public void execute1() { |
| | | ReturnT<String> returnT = planOrderHandler.start1(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转库 |
| | | * |
| | | * @return |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute2() { |
| | | ReturnT<String> returnT = planOrderHandler.start2(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 采购到货单 |
| | | * |
| | | * @return |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute3() { |
| | | ReturnT<String> returnT = planOrderHandler.start3(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 盘点单 |
| | | * |
| | | * @return |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute4() { |
| | | ReturnT<String> returnT = planOrderHandler.start4(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | | } |
| | | } |
| | | } |