| | |
| | | package com.zy.common.model; |
| | | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | import lombok.Data; |
| | | |
| | |
| | | // 轻重类型{0:未知,1:轻库位,2:重库位} |
| | | private Short locType3; |
| | | |
| | | private Integer siteId; |
| | | |
| | | public LocTypeDto() { |
| | | } |
| | | |
| | |
| | | // if (staProtocol.isHigh() == staProtocol.isLow()) { |
| | | // throw new CoolException("plc高低检测异常"); |
| | | // } |
| | | if (staProtocol.getSiteId() == 106){ |
| | | this.locType1 = 2; // 高库位 |
| | | }else { |
| | | // if (staProtocol.getSiteId() == 106 || staProtocol.getSiteId() == 159){ |
| | | // this.locType1 = 2; // 高库位 |
| | | // }else { |
| | | this.locType1 = 1; // 低库位 |
| | | } |
| | | // } |
| | | } |
| | | |
| | | /** |