package com.zy.asrs.task;
|
|
import com.zy.asrs.task.handler.GhlnHandler;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
import javax.annotation.Resource;
|
|
/**
|
* @author pang.jiabao
|
* @description 冠鸿龙南专用定时任务
|
* @createDate 2024/7/10 9:20
|
*/
|
@Slf4j
|
@Component
|
public class GhlnScheduler {
|
|
|
@Resource
|
private GhlnHandler ghlnHandler;
|
|
// 出库到达出库目标站时,调用AGV开放出库接口
|
@Scheduled(cron = "0/30 * * * * ?")
|
private void sendOutboundTaskToAGV(){
|
ghlnHandler.sendOutboundTaskToAGV();
|
}
|
|
// 调用金蝶同步物料接口,增量同步每小时产生的新物料
|
@Scheduled(cron = "0 0 0/1 * * ? ")
|
private void syncMat(){
|
ghlnHandler.syncMat();
|
}
|
}
|