package com.zy.asrs.task; import com.zy.asrs.service.LocMastService; import com.zy.asrs.task.core.ReturnT; import com.zy.asrs.task.handler.StarUpTestPACKHandler; 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 StartUpTestPACKScheduler { @Value("${wcs-slave.doubleDeep}") private boolean confirmDeep; @Autowired private StarUpTestPACKHandler starUpTestPACKHandler; /** * */ //@Scheduled(cron = "0/3 * * * * ? ") private void execute() { if (confirmDeep) return; ReturnT result = starUpTestPACKHandler.start(); if (!result.isSuccess()) { log.error("申请测试失败"); } } }