| | |
| | | package com.zy.common.model; |
| | | |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | import com.zy.utils.News; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | public LocTypeDto(StaProtocol staProtocol) { |
| | | this.locType1 = staProtocol.getGoodsHeight(); |
| | | if (staProtocol.isHigh() == staProtocol.isLow() || staProtocol.isChang() == staProtocol.isDuan()) { |
| | | News.error("plc高低/长短检测异常,high:{},low:{},chang:{},duan:{}",staProtocol.isHigh(),staProtocol.isLow(),staProtocol.isChang(),staProtocol.isDuan()); |
| | | return; |
| | | } |
| | | |
| | | if (staProtocol.isHigh()) { |
| | | this.locType1 = 2; |
| | | } else { |
| | | this.locType1 = 1; |
| | | } |
| | | |
| | | if (staProtocol.isChang()) { |
| | | this.locType2 = 2; // 长库位 |
| | | } else { |
| | | this.locType2 = 1; // 短库位 |
| | | } |
| | | } |
| | | |
| | | /** |