| | |
| | | sourceStaNo.setLocType1(param.getLocType1()); |
| | | LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); |
| | | |
| | | if (param.getBarcode().startsWith("4")){ |
| | | locTypeDto.setLocType2((short) 4); |
| | | }else if (param.getBarcode().startsWith("5")){ |
| | | locTypeDto.setLocType2((short) 5); |
| | | if (param.getBarcode().startsWith("5")){ |
| | | locTypeDto.setLocType2((short) 5); // 2000*1500*170 1巷道 4、5层 |
| | | }else if (param.getBarcode().startsWith("6")){ |
| | | locTypeDto.setLocType2((short) 6); |
| | | locTypeDto.setLocType2((short) 6); // 1500*1500*170(有两种 托盘一样 载重不一样 需要单独根据 托盘码 + 高低 来写分库位的逻辑) 1巷道 1、2、3层 |
| | | }else if (param.getBarcode().startsWith("7")){ |
| | | locTypeDto.setLocType2((short) 7); |
| | | locTypeDto.setLocType2((short) 7); // 2600*1500*160 2巷道 1、2层 |
| | | }else if (param.getBarcode().startsWith("8")){ |
| | | locTypeDto.setLocType2((short) 8); |
| | | locTypeDto.setLocType2((short) 8); // 1300*1500*160 2巷道 3、4、5、6层 |
| | | }else { |
| | | throw new CoolException("条码规则不存在:"+param.getBarcode()); |
| | | return R.error("条码规则不存在:"+param.getBarcode()); |
| | | } |
| | | |
| | | StartupDto dto = null; |
| | | switch (param.getIoType()) { |
| | | case 1://满托盘入库 |
| | | assert waitPakins != null; |
| | | dto = startupFullPutStore(param.getSourceStaNo(), param.getBarcode(),param.getWeight(), locTypeDto, waitPakins); |
| | | dto = startupFullPutStore(param.getSourceStaNo(), param.getBarcode(), param.getWeight(), locTypeDto, waitPakins); |
| | | break; |
| | | case 10://空托盘入库 |
| | | dto = emptyPlateIn(param.getSourceStaNo(), locTypeDto, param.getBarcode()); |