Commit 7fe1550d by huluobin

商城折扣价格支付

parent 96fdee48
......@@ -98,7 +98,7 @@ public class MallOrderServiceImpl extends ServiceImpl<MallOrderMapper, MallOrder
mallOrderDetailDTO.setPrice(product.getBargainPrice());
}
mallOrderDetailDTO.setAmount(product.getPrice().multiply(new BigDecimal(num)));
mallOrderDetailDTO.setAmount(mallOrderDetailDTO.getPrice().multiply(new BigDecimal(num)));
//todo 优惠计算
mallOrderDetailDTO.setDiscountAmount(BigDecimal.ZERO);
mallOrderDetailDTO.setPayAmount(mallOrderDetailDTO.getAmount().subtract(mallOrderDetailDTO.getDiscountAmount()));
......
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