|
@@ -49,7 +49,8 @@ public class TradeMemberLevelPriceCalculator implements TradePriceCalculator {
|
|
// 2. 计算每个 SKU 的优惠金额
|
|
// 2. 计算每个 SKU 的优惠金额
|
|
result.getItems().forEach(orderItem -> {
|
|
result.getItems().forEach(orderItem -> {
|
|
// 2.1 计算优惠金额
|
|
// 2.1 计算优惠金额
|
|
- Integer vipPrice = calculateVipPrice(orderItem.getPayPrice(), level.getDiscountPercent());
|
|
|
|
|
|
+// Integer vipPrice = calculateVipPrice(orderItem.getPayPrice(), level.getDiscountPercent());
|
|
|
|
+ Integer vipPrice = 0;
|
|
if (vipPrice <= 0) {
|
|
if (vipPrice <= 0) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -73,7 +74,7 @@ public class TradeMemberLevelPriceCalculator implements TradePriceCalculator {
|
|
/**
|
|
/**
|
|
* 计算会员 VIP 优惠价格
|
|
* 计算会员 VIP 优惠价格
|
|
*
|
|
*
|
|
- * @param price 原价
|
|
|
|
|
|
+ * @param price 原价
|
|
* @param discountPercent 折扣
|
|
* @param discountPercent 折扣
|
|
* @return 优惠价格
|
|
* @return 优惠价格
|
|
*/
|
|
*/
|