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

Commit be04c7de authored by 胡佳晨's avatar 胡佳晨

平台指定满减券、折扣券测试完成

parent 34c9eed3
......@@ -129,12 +129,12 @@ public class GoblinOrderUtils {
}
}
}
if (fullValue.compareTo(targetPrice) >= 0) {
if (fullValue.compareTo(targetPrice) <= 0) {
voucher = voucher.add(value);
} else {
backCoupon(uCouponId, uid);
hashMap.put("type", -1);
hashMap.put("voucher", 0);
hashMap.put("voucher", BigDecimal.ZERO);
return hashMap;
}
break;
......@@ -153,7 +153,7 @@ public class GoblinOrderUtils {
}
}
}
voucher = totalPrice.subtract(targetPrice.multiply(value));
voucher = targetPrice.subtract(targetPrice.multiply(value));
break;
default:
voucher = BigDecimal.ZERO;
......
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