Commit 951381b4 by weijiguang

test

parent d42f183d
...@@ -229,7 +229,7 @@ public class CouponUserServiceImpl implements ICouponUserService { ...@@ -229,7 +229,7 @@ public class CouponUserServiceImpl implements ICouponUserService {
BigDecimal rate = orderDetail.getAmountShould().divide(orderTotalOrigDiscount); BigDecimal rate = orderDetail.getAmountShould().divide(orderTotalOrigDiscount);
log.info("rate:{},detail:{}", rate, JSON.toJSON(orderDetail)); log.info("rate:{},detail:{}", rate, JSON.toJSON(orderDetail));
orderDetail.setCouponAmount(couponVo.getCouponAmount().multiply(rate)); orderDetail.setCouponAmount(couponVo.getCouponAmount().multiply(rate));
orderDetail.setRealAmount(orderDetail.getAmountShould().add(orderDetail.getCouponAmount())); orderDetail.setRealAmount(orderDetail.getOrigDiscount().add(orderDetail.getCouponAmount()));
}); });
} }
} else { } else {
......
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