Commit 3b5a8081 by weijiguang

test

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