| | |
| | | if (Cools.isEmpty(param.getCargoHeight())) { |
| | | return Re.error("高低检测信号不能为空"); |
| | | } |
| | | if (!param.getBarCode().startsWith("7")&&!param.getBarCode().startsWith("8")){ |
| | | return Re.error("未定义的托盘码规则"); |
| | | } |
| | | // if (!param.getBarCode().startsWith("7")&&!param.getBarCode().startsWith("8")){ |
| | | // return Re.error("未定义的托盘码规则"); |
| | | // } |
| | | |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(Integer.valueOf(param.getFromPort()), true); |
| | | sourceStaNo.setLocType1(param.getCargoHeight().shortValue()); // 高低库位 |
| | | if (param.getBarCode().startsWith("7")){ |
| | | sourceStaNo.setLocType2((short) 1); // 宽窄库位 1.窄库位1200*1000*990 1期库位 |
| | | }else if (param.getBarCode().startsWith("8")){ |
| | | sourceStaNo.setLocType2((short) 2); // 宽窄库位 2.宽库位1200*1000*1270 2期库位 |
| | | } |
| | | // if (param.getBarCode().startsWith("7")){ |
| | | // sourceStaNo.setLocType2((short) 1); // 宽窄库位 1.窄库位1200*1000*990 |
| | | // }else if (param.getBarCode().startsWith("8")){ |
| | | // sourceStaNo.setLocType2((short) 2); // 宽窄库位 2.宽库位1200*1000*1270 |
| | | // } |
| | | LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); |
| | | |
| | | StartupDto dto = null; |