| | |
| | | LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); |
| | | if (param.getBarcode().startsWith("11")) { |
| | | locTypeDto.setLocType2((short) 1); |
| | | }else if (param.getBarcode().startsWith("13")) { |
| | | } else if (param.getBarcode().startsWith("13")) { |
| | | locTypeDto.setLocType2((short) 2); |
| | | }else if (param.getBarcode().startsWith("16")) { |
| | | } else if (param.getBarcode().startsWith("16")) { |
| | | locTypeDto.setLocType2((short) 3); |
| | | }else { |
| | | } else { |
| | | return R.error("未知托盘码规则"); |
| | | } |
| | | |
| | |
| | | // dto.setStaNo(103); |
| | | // LocMast locMastxx = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_sts", "O")); |
| | | // dto.setLocNo(locMastxx.getLocNo()); |
| | | // dto.setWorkNo(Integer.parseInt(Math.random() * 1000 + "")); |
| | | // dto.setWorkNo(Integer.parseInt((System.currentTimeMillis() + "").substring(10))); |
| | | |
| | | StartupDto dto = commonService.getLocNo( 1, devpNo,findLocNoAttributeVo, locTypeDto); |
| | | if (dto == null) { |
| | |
| | | } |
| | | }); |
| | | // 更新入库通知档 ioStatus ===>> Y |
| | | Wrapper<WaitPakin> wrapper = new EntityWrapper<WaitPakin>() |
| | | .eq("zpallet", barcode); |
| | | WaitPakin setParam = new WaitPakin(); |
| | | setParam.setLocNo(dto.getLocNo()); |
| | | setParam.setIoStatus("Y"); |
| | | setParam.setModiTime(now); |
| | | if (!waitPakinService.update(setParam, wrapper)) { |
| | | if (!waitPakinService.updateIoStatus("Y", dto.getLocNo(), barcode)) { |
| | | throw new CoolException("更新通知档失败"); |
| | | } |
| | | // 更新源站点信息 |