记得上下班打卡 | git大法好,push需谨慎

Commit 34c9eed3 authored by 胡佳晨's avatar 胡佳晨

使用平台券

parent 386ebf32
...@@ -118,10 +118,14 @@ public class GoblinOrderUtils { ...@@ -118,10 +118,14 @@ public class GoblinOrderUtils {
voucher = voucher.add(value); voucher = voucher.add(value);
break; break;
case 2://满减 case 2://满减
for (String targetId : targetList) { if (targetList.size() == 0) {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) { targetPrice = totalPrice;
if (targetId.equals(skuOrderVo.getSpuId())) { } else {
targetPrice = targetPrice.add(skuOrderVo.getSkuPriceActual()); for (String targetId : targetList) {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) {
if (targetId.equals(skuOrderVo.getSpuId())) {
targetPrice = targetPrice.add(skuOrderVo.getSkuPriceActual());
}
} }
} }
} }
...@@ -138,10 +142,14 @@ public class GoblinOrderUtils { ...@@ -138,10 +142,14 @@ public class GoblinOrderUtils {
voucher = voucher.add(totalPrice); voucher = voucher.add(totalPrice);
break; break;
case 4://折扣 case 4://折扣
for (String targetId : targetList) { if (targetList.size() == 0) {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) { targetPrice = totalPrice;
if (targetId.equals(skuOrderVo.getSpuId())) { } else {
targetPrice = targetPrice.add(skuOrderVo.getSkuPriceActual()); for (String targetId : targetList) {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) {
if (targetId.equals(skuOrderVo.getSpuId())) {
targetPrice = targetPrice.add(skuOrderVo.getSkuPriceActual());
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment