list bigdecimal两个参数相乘后相加 list.stream().reduce(BigDecimal.ZERO,(x,y)->x.add(y.getSalePrice().multiply(new BigDecimal(y.getNum()))), BigDecimal::add);