自动化立体仓库 - WMS系统
zhang
昨天 8d90833250abee5951572659e9a192f2487cd704
src/main/java/com/zy/asrs/task/OrderMoveHistoryScheduler.java
@@ -1,6 +1,7 @@
package com.zy.asrs.task;
import com.zy.asrs.task.handler.OrderMoveHistoryHandler;
import com.zy.asrs.task.handler.OrderPakinMoveHistoryHandler;
import com.zy.asrs.task.handler.OrderPakoutMoveHistoryHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -9,14 +10,17 @@
@Component
public class OrderMoveHistoryScheduler {
    @Autowired
    private OrderMoveHistoryHandler orderMoveHistoryHandler;
    private OrderPakinMoveHistoryHandler orderPakinMoveHistoryHandler;
    @Autowired
    private OrderPakoutMoveHistoryHandler orderPakoutMoveHistoryHandler;
    /**
     * 将已完成order和orderDetl移动到log表
     */
    @Scheduled(cron = "0/30 * * * * ?")
    public void execute(){
        orderMoveHistoryHandler.start();
        orderPakinMoveHistoryHandler.start();
    }
    /**
@@ -24,6 +28,6 @@
     */
    @Scheduled(cron = "0/30 * * * * ?")
    public void executeOrder(){
        orderMoveHistoryHandler.startOrder();
        orderPakoutMoveHistoryHandler.start();
    }
}