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

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

修改 离线券 算法

parent 05ab1f62
......@@ -255,7 +255,7 @@ public class GoblinOrderUtils {
for (CouponOutLineVo data : couponList) {
if (data.getStoreCouponId().equals(ucouponId)) {
isOutLine = true;
BigDecimal tempPrice = totalPrice.subtract(totalPrice.multiply(BigDecimal.valueOf(data.getDiscount())).setScale(2, BigDecimal.ROUND_HALF_DOWN));
BigDecimal tempPrice = totalPrice.subtract(totalPrice.multiply(BigDecimal.valueOf(data.getDiscount()).divide(BigDecimal.valueOf(100))).setScale(2, BigDecimal.ROUND_HALF_DOWN));
returnVo.setSpuIds(CollectionUtil.linkedListString());
returnVo.setValue(tempPrice);
returnVo.setCouType(data.getCouType());
......
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