| | |
| | | return SUCCESS; |
| | | } |
| | | List<OrderDetl> orderDetls = orderDetlService.selectByOrderId(order.getId()); |
| | | if (orderDetls.isEmpty()){ |
| | | return SUCCESS; |
| | | } |
| | | // 入库完成上报 |
| | | if (docType.getPakin() == 1) { |
| | | ExdInstockTarget exdInstockTarge = null; |
| | |
| | | exdInstockTarge.setWritor("WMS"); |
| | | exdInstockTarge.setStatus(0); |
| | | exdInstockTargetService.insert(exdInstockTarge); |
| | | } |
| | | if (!orderService.updateSettle(order.getId(), 6L, null)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } |
| | | } |
| | | } else if (docType.getPakout() == 1) { |
| | | // 出库完成上报 |
| | |
| | | exdOutstockTarget.setWritor("WMS"); |
| | | exdOutstockTarget.setStatus(0); |
| | | exdOutstockTargetService.insert(exdOutstockTarget); |
| | | |
| | | } |
| | | if (!orderService.updateSettle(order.getId(), 6L, null)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | } |
| | | } |
| | | } |
| | | return SUCCESS; |