|  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(waitPakin.getOrderNo())){ | 
|---|
|  |  |  | Order order = orderService.selectByNo(waitPakin.getOrderNo(), hostId); | 
|---|
|  |  |  | if (Cools.isEmpty(order)){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | throw new CoolException("平库上架查询订单失败"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | OrderDetl orderDetl = orderDetlService.selectItem(order.getId(), waitPakin.getMatnr(), waitPakin.getBatch(),hostId); | 
|---|
|  |  |  | if (Cools.isEmpty(orderDetl)){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | throw new CoolException("平库上架查询订单明细失败"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 修改订单明细完成数量 | 
|---|
|  |  |  | if (!orderDetlService.increase(order.getId(), hostId, waitPakin.getMatnr(), waitPakin.getBatch(), waitPakin.getAnfme())) { | 
|---|