| | |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.service.BasShuttleErrService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.common.model.NavigateNode; |
| | | import com.zy.common.utils.RedisUtil; |
| | | import com.zy.core.enums.RedisKeyType; |
| | | import com.zy.core.enums.ShuttleProtocolStatusType; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 四向穿梭车 |
| | |
| | | private Long lastOnlineTime = System.currentTimeMillis(); |
| | | |
| | | /** |
| | | * 小车空闲时间 |
| | | */ |
| | | private Long idleTime = System.currentTimeMillis(); |
| | | |
| | | /** |
| | | * 扩展字段 |
| | | */ |
| | | private Object extend; |
| | |
| | | * 系统消息 |
| | | */ |
| | | private String systemMsg; |
| | | |
| | | /** |
| | | * 交通管制 |
| | | */ |
| | | private Boolean trafficControl = false; |
| | | |
| | | /** |
| | | * 交通管制Nodes |
| | | */ |
| | | private List<NavigateNode> trafficControlNodes = null; |
| | | |
| | | public String getProtocolStatus$() { |
| | | if (this.protocolStatusType == null) { |
| | |
| | | } |
| | | } |
| | | return this.taskNo == null ? 0 : this.taskNo; |
| | | } |
| | | |
| | | public synchronized void setSyncTaskNo(Integer taskNo) { |
| | | RedisUtil redisUtil = null; |
| | | try { |
| | | redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | }catch (Exception e) {} |
| | | if (null != redisUtil) { |
| | | redisUtil.set(RedisKeyType.SHUTTLE_FLAG.key + this.shuttleNo, taskNo); |
| | | this.taskNo = taskNo; |
| | | } |
| | | } |
| | | |
| | | @Override |