| | |
| | | package com.zy.common.model; |
| | | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | import lombok.Data; |
| | | |
| | |
| | | } |
| | | |
| | | public LocTypeDto(StaProtocol staProtocol) { |
| | | // if (staProtocol.isHigh() == staProtocol.isLow()) { |
| | | // throw new CoolException("plc高低检测异常"); |
| | | // } |
| | | // if (staProtocol.isLow()) { |
| | | // this.locType1 = 1; // 低库位 |
| | | // } else { |
| | | // this.locType1 = 2; // 高库位 |
| | | // } |
| | | if (staProtocol.getLocType1() == null || staProtocol.getLocType1() == 0) { |
| | | throw new CoolException("plc高低检测异常"); |
| | | } |
| | | this.locType1 = staProtocol.getLocType1(); |
| | | } |
| | | |
| | | /** |