package com.zy.asrs.wcs.core.timer; import com.zy.asrs.wcs.core.utils.RedisUtil; 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 DeviceTimer { @Autowired private RedisUtil redisUtil; @Scheduled(cron = "0/1 * * * * ? ") public synchronized void executeShuttle() { } @Scheduled(cron = "0/1 * * * * ? ") public synchronized void executeLift() { } @Scheduled(cron = "0/1 * * * * ? ") public synchronized void executeConveyor() { } }