| | |
| | | } |
| | | Double erpAnfme = anfme*mat.getSafeQty(); |
| | | Order order1 = orderService.selectByNo( billNo); |
| | | List<OrderDetl> orderDetls = orderDetlService.selectByOrderId(order1.getId()); |
| | | boolean sign = false; |
| | | for (OrderDetl orderDetl : orderDetls){ |
| | | if (orderDetl.getMatnr().equals(matnr)){ |
| | | sign = true; |
| | | break; |
| | | } |
| | | } |
| | | if (sign){ |
| | | continue; |
| | | } |
| | | List<OrderDetl> orderDetls = |
| | | orderDetlService.selectByOrderId(order.getId()); |
| | | boolean exists = orderDetls.stream() |
| | | .anyMatch(o -> |
| | | o.getMatnr().equals(matnr) && |
| | | o.getBoxType3().equals(pOrderNo) |
| | | ); |
| | | if (exists) continue; |
| | | LocSupp locSupp = null; |
| | | String supp =null; |
| | | locSupp = locSuppService.selectByUuid(suppCode); |