|
|
@@ -1029,8 +1029,10 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
BigDecimal number = shipItems.getSendNumFinancing();
|
|
|
//获取出库明细商品对应融资采购商品明细
|
|
|
- List<PjOrderItems> orderItemList = orderItemsList.stream().filter(e -> e.getGoodsId().equals(shipItems.getGoodsId())
|
|
|
- && new BigDecimal("0").compareTo(shipItems.getSendNumFinancing()) != 0).collect(Collectors.toList());
|
|
|
+ if (new BigDecimal("0").compareTo(shipItems.getSendNumFinancing()) == 0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ List<PjOrderItems> orderItemList = orderItemsList.stream().filter(e -> e.getGoodsId().equals(shipItems.getGoodsId())).collect(Collectors.toList());
|
|
|
if (orderItemList.isEmpty()) {
|
|
|
throw new RuntimeException("商品:" + shipItems.getGoodsName() + "超过90天未赎回,请确认在出库");
|
|
|
}
|