package com.zy.asrs.task; 
 | 
  
 | 
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; 
 | 
  
 | 
  
 | 
@Component 
 | 
public class OrderMoveHistoryScheduler { 
 | 
    @Autowired 
 | 
    private OrderPakinMoveHistoryHandler orderPakinMoveHistoryHandler; 
 | 
  
 | 
    @Autowired 
 | 
    private OrderPakoutMoveHistoryHandler orderPakoutMoveHistoryHandler; 
 | 
  
 | 
    /** 
 | 
     * 将已完成order和orderDetl移动到log表 
 | 
     */ 
 | 
    @Scheduled(cron = "0/30 * * * * ?") 
 | 
    public void execute() { 
 | 
        orderPakinMoveHistoryHandler.start(); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 将已上报order和orderDetl移动到log表 
 | 
     */ 
 | 
    @Scheduled(cron = "0/30 * * * * ?") 
 | 
    public void executeOrder() { 
 | 
        orderPakoutMoveHistoryHandler.start(); 
 | 
    } 
 | 
} 
 |