| | |
| | | import com.zy.acs.common.domain.AgvProtocol; |
| | | import com.zy.acs.common.utils.RedisSupport; |
| | | import com.zy.acs.manager.core.service.MainService; |
| | | import com.zy.acs.manager.system.service.ConfigService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.context.event.ApplicationReadyEvent; |
| | |
| | | @Autowired |
| | | private MainService mainService; |
| | | |
| | | @Autowired |
| | | private ConfigService configService; |
| | | |
| | | |
| | | @EventListener(ApplicationReadyEvent.class) |
| | | private void start(){ |
| | | thread = new Thread(() -> { |
| | |
| | | // 间隔 |
| | | Thread.sleep(30); |
| | | |
| | | if (configService.getVal("stopDownData", Boolean.class)) { return; } |
| | | |
| | | AgvProtocol protocol = redis.pop(RedisConstant.AGV_COMPLETE_FLAG); |
| | | if (null != protocol){ |
| | | |