|
@@ -198,13 +198,16 @@ public class OrderInfoService {
|
|
|
Product product = productDao.get(productId);
|
|
|
BigDecimal price = product.getPrice();
|
|
|
|
|
|
+ BigDecimal lastPrice = price;
|
|
|
+
|
|
|
// 优惠券
|
|
|
if (productCouponList.size() > 0) {
|
|
|
for (ProductCoupon productCoupon : productCouponList) {
|
|
|
- price = price.subtract(calculatePriceSingle(price, productCoupon));
|
|
|
+ BigDecimal bigDecimal = calculatePriceSingle(price, productCoupon);
|
|
|
+ lastPrice = lastPrice.subtract(bigDecimal);
|
|
|
}
|
|
|
}
|
|
|
- return price;
|
|
|
+ return lastPrice;
|
|
|
}
|
|
|
|
|
|
/**
|