|  |  | 
 |  |  |      */ | 
 |  |  |     public static LocTypeDto process(StaProtocol staProtocol) { | 
 |  |  |         LocTypeDto dto = new LocTypeDto(); | 
 |  |  |         if (staProtocol.isHigh() == staProtocol.isLow()) { | 
 |  |  |             throw new CoolException("plc高低检测异常"); | 
 |  |  |         } | 
 |  |  |         if (staProtocol.isLow()) { | 
 |  |  |             dto.setLocType1((short) 1); // 低库位 | 
 |  |  |         } else { | 
 |  |  |             dto.setLocType1((short) 2); // 高库位 | 
 |  |  |         } | 
 |  |  | //        if (staProtocol.isHigh() == staProtocol.isLow()) { | 
 |  |  | //            throw new CoolException("plc高低检测异常"); | 
 |  |  | //        } | 
 |  |  | //        if (staProtocol.isLow()) { | 
 |  |  | //            dto.setLocType1((short) 1); // 低库位 | 
 |  |  | //        } else { | 
 |  |  | //            dto.setLocType1((short) 2); // 高库位 | 
 |  |  | //        } | 
 |  |  |         return dto; | 
 |  |  |     } | 
 |  |  |  |