| | |
| | | package com.zy.core; |
| | | |
| | | import com.zy.service.impl.MainServiceImpl; |
| | | import com.zy.core.properties.SystemProperties; |
| | | import com.zy.service.impl.MainServiceImpl; |
| | | import com.zy.utils.News; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PreDestroy; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * WCS主流程 |
| | |
| | | // 初始化罐装线出库口是否可出 |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | long startTime = System.currentTimeMillis(); |
| | | Thread.sleep(1000); |
| | | |
| | | // 系统运行状态判断 |
| | |
| | | |
| | | //手动站位转移 |
| | | mainService.manualStationTransfer(); |
| | | |
| | | long endTime = System.currentTimeMillis(); |
| | | if (endTime-startTime > 4000) { |
| | | News.info("--------------------WCS循环{}->{},耗时:{}------------------------",new Date(startTime),new Date(endTime),endTime-startTime); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |