package com.zy.asrs.task; import com.zy.asrs.task.core.ReturnT; import com.zy.asrs.task.handler.StandingHandler; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component @Slf4j public class StandingScheduler { @Value("${wcs-slave.doubleDeep}") private boolean confirmDeep; @Autowired private StandingHandler standingHandler; /** * */ @Scheduled(cron = "0/5 * * * * ? ") private void execute() { //if (confirmDeep) return; ReturnT result = standingHandler.start(); if (!result.isSuccess()) { log.error("静置完成出库失败"); } } }