自动化立体仓库 - WMS系统
1
2025-10-09 dbe87fddc43db7e5486489c3a011cc6474c4701c
src/main/java/com/zy/asrs/task/OrderMoveHistoryScheduler.java
@@ -9,14 +9,21 @@
@Component
public class OrderMoveHistoryScheduler {
    @Autowired
    private OrderMoveHistoryHandler handler;
    private OrderMoveHistoryHandler orderMoveHistoryHandler;
    /**
     * 将已完成order和orderDetl移动到log表
     */
    @Scheduled(cron = "0/30 * * * * ?")
    public void execute(){
        handler.move();
        orderMoveHistoryHandler.start();
    }
    /**
     * 将已上报order和orderDetl移动到log表
     */
    @Scheduled(cron = "0/30 * * * * ?")
    public void executeOrder(){
        orderMoveHistoryHandler.startOrder();
    }
}