| | |
| | | ExdOutstockTarget exdOutstockTarget = null; |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | exdOutstockTarget = new ExdOutstockTarget(); |
| | | exdOutstockTarget.setFinterid(orderDetl.getDeadWarn()); |
| | | exdOutstockTarget.setFbillno(orderDetl.getOrderNo()); |
| | | if (order.getDocType() == 42) { |
| | | exdOutstockTarget.setFtrantype(41); |
| | | } else if (order.getDocType() == 21) { |
| | | exdOutstockTarget.setFtrantype(81); |
| | | } else { |
| | | exdOutstockTarget.setFtrantype(order.getDocType().intValue()); |
| | | } |
| | | exdOutstockTarget.setFdate(DateUtils.convert(order.getOrderTime())); |
| | | exdOutstockTarget.setFrob(orderDetl.getInspect()); |
| | | exdOutstockTarget.setFuserid(Integer.getInteger(orderDetl.getColor())); |
| | | exdOutstockTargetService.insert(exdOutstockTarget); |
| | | if (!orderService.updateSettle(order.getId(), 6L, null)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |