package com.zy.asrs.task.kingdee;
|
|
import com.zy.asrs.task.kingdee.handler.InboundOrderHandler;
|
import com.zy.asrs.task.kingdee.handler.LoginAuthenticationHandler;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
@Slf4j
|
@Component
|
public class InboundOrderScheduler {
|
|
@Autowired
|
private InboundOrderHandler inboundOrderHandler;
|
@Scheduled(cron = "0 * * * * ?")
|
void login(){
|
Boolean fig=false;
|
if(fig){
|
return;
|
}
|
inboundOrderHandler.start();
|
}
|
|
}
|