| | |
| | | }else if (Cools.isEmpty(matList.getRollExtent()) || matList.getRollExtent().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:卷长度 rollExtent为空"); |
| | | } |
| | | matList.setPosition("1");//强制同位置 |
| | | |
| | | if (matList.getPosition().equals("1")){//1、左 2、右 |
| | | if (!matnrOne.equals("")){ |
| | | if (!matnrOne.equals(matList.getMatnr())){ |
| | | throw new CoolException("木箱位置:"+matList.getPosition()+"存在不同规格卷信息"); |
| | | } |
| | | }else { |
| | | matnrOne=matList.getMatnr(); |
| | | } |
| | | // if (!matnrOne.equals("")){ |
| | | // if (!matnrOne.equals(matList.getMatnr())){ |
| | | // throw new CoolException("木箱位置:"+matList.getPosition()+"存在不同规格卷信息"); |
| | | // } |
| | | // }else { |
| | | // matnrOne=matList.getMatnr(); |
| | | // } |
| | | }else if (matList.getPosition().equals("2")){ |
| | | if (!matnrTwo.equals("")){ |
| | | if (!matnrTwo.equals(matList.getMatnr())){ |