| | |
| | | } |
| | | } |
| | | } catch (Exception ignore) { |
| | | } |
| | | |
| | | } |
| | | } |
| | | // 修改库位状态 S ====>> F |
| | | if (locMast.getLocSts().equals("S")) { |
| | |
| | | throw new CoolException("库位明细保存失败!!"); |
| | | } |
| | | |
| | | OrderPakin orderPakin = orderPakinService.selectOne(new EntityWrapper<OrderPakin>().eq("order_no", pakin.getOrderNo())); |
| | | if (Objects.isNull(orderPakin)) { |
| | | throw new CoolException("数据错误,订单信息不存在!!"); |
| | | } |
| | | |
| | | if (!orderPakin.getDocType().equals(0)) { |
| | | // 更新订单完成数量 |
| | | OrderDetlPakin orderDetlPakin = orderDetlPakinService.selectItem(pakin.getOrderNo(), |
| | | pakin.getMatnr(), pakin.getBatch(), pakin.getBrand(), pakin.getStandby1(), |
| | |
| | | } |
| | | } |
| | | } catch (Exception ignore) { |
| | | |
| | | } |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | Set<Long> list = apallets.stream().map(WaitPakin::getOrderId).collect(Collectors.toSet()); |
| | | List<OrderPakin> pakins = orderPakinService.selectList(new EntityWrapper<OrderPakin>().in("id", list)); |
| | | if (Objects.isNull(pakins) || pakins.isEmpty()) { |
| | | // throw new CoolException("单据不存在!!"); |
| | | } |
| | | // if (Objects.isNull(pakins) || pakins.isEmpty()) { |
| | | //// throw new CoolException("单据不存在!!"); |
| | | // } |
| | | }else if(wrkMast.getIoType().equals(53)){ |
| | | // 根据工作号,查询工作明细档 |
| | | List<TaskDetl> wrkDetls53 = taskDetlService |