| | |
| | | DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getBrand(), elem.getStandby1(), elem.getStandby2(), elem.getStandby3(), |
| | | elem.getBoxType1(), elem.getBoxType2(), elem.getBoxType3(), elem.getAnfme()); |
| | | detlDto.setWeight(elem.getWeight()); |
| | | detlDto.setCstateid(elem.getCstateid()); |
| | | if (DetlDto.has(detlDtos, detlDto)) { |
| | | DetlDto one = DetlDto.findDto(detlDtos, detlDto); |
| | | assert one != null; |
| | |
| | | waitPakin.setStandby2(detlDto.getStandby2()); |
| | | waitPakin.setStandby3(detlDto.getStandby3()); |
| | | waitPakin.setTkFlag(param.getTkFlag()); |
| | | waitPakin.setCstateid(detlDto.getCstateid()); |
| | | if (!waitPakinService.insert(waitPakin)) { |
| | | throw new CoolException("保存入库通知档失败"); |
| | | } |
| | |
| | | elem.getBoxType1(), elem.getBoxType2(), elem.getBoxType3(), elem.getAnfme()); |
| | | detlDto.setOrderNo(elem.getOrderNo()); |
| | | detlDto.setWeight(elem.getWeight()); |
| | | detlDto.setCstateid(elem.getCstateid()); |
| | | if (DetlDto.has(detlDtos, detlDto)) { |
| | | DetlDto one = DetlDto.findDto(detlDtos, detlDto); |
| | | assert one != null; |
| | |
| | | waitPakin.setStandby2(detlDto.getStandby2()); |
| | | waitPakin.setStandby3(detlDto.getStandby3()); |
| | | waitPakin.setWeight(detlDto.getWeight()); |
| | | waitPakin.setCstateid(detlDto.getCstateid()); |
| | | if (!waitPakinService.insert(waitPakin)) { |
| | | throw new CoolException("保存入库通知档失败"); |
| | | } |
| | |
| | | if (checkOrderDetlList.isEmpty()) { |
| | | throw new CoolException("盘点单无物料明细"); |
| | | } |
| | | InventoryCheckOrderDetl orderDetl = checkOrderDetlList.get(0); |
| | | |
| | | List<InventoryCheckOrderDetl> checkOrderDetls = inventoryCheckOrderDetlService.selectList(new EntityWrapper<InventoryCheckOrderDetl>() |
| | | .eq("matnr", orderDetl.getMatnr()) |
| | | .eq("batch", orderDetl.getBatch()) |
| | | ); |
| | | |
| | | boolean complete = true; |
| | | for (InventoryCheckOrderDetl checkOrderDetl : checkOrderDetls) { |
| | | for (InventoryCheckOrderDetl checkOrderDetl : checkOrderDetlList) { |
| | | if (!checkOrderDetl.getStatus().equals("2")) { |
| | | complete = false; |
| | | } |
| | | } |
| | | if (complete) { |
| | | boolean result = reportToThirdService.reportCheckOrder(orderDetl.getMatnr(), orderDetl.getBatch()); |
| | | boolean result = reportToThirdService.reportCheckOrder(checkOrderDetlList); |
| | | if (!result) { |
| | | throw new CoolException("盘点单上报失败"); |
| | | } |