package com.zy.asrs.task.main; import com.zy.asrs.utils.ShuttleTaskUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class ShuttleTaskExecuteScheduler { @Autowired private ShuttleTaskUtils shuttleTaskUtils; @Scheduled(cron = "0/3 * * * * ? ") public synchronized void shuttleFinished() { //四向穿梭车任务完成 shuttleTaskUtils.shuttleFinished(); } }