|
@@ -94,10 +94,10 @@ public class StandardOrderJob {
|
|
|
|
|
|
com.zswl.cloud.shop.client.ret.ResultContent<CalculateVo> calculate = goodsService.calculate(calculateCouponDto);
|
|
|
CalculateVo calculateVo = calculate.getContent();
|
|
|
- // 设置订单价格
|
|
|
+ // 设置订单价格 todo 价格处理
|
|
|
createOrder2Model.setTotalAmount(calculateVo.getPrice());
|
|
|
createOrder2Model.setPayAmount(calculateVo.getPrice());
|
|
|
- createOrder2Model.setDiscountAmount(BigDecimal.ZERO);
|
|
|
+ createOrder2Model.setDiscountAmount(calculateVo.getOffset());
|
|
|
|
|
|
goods.setPayAmount(calculateVo.getPrice());
|
|
|
|