Commit edb56abf by wuwenlong

computer order bugfix;

parent d085da08
...@@ -387,7 +387,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -387,7 +387,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
*/ */
@Override @Override
public ComputedOrderPriceResponse computedOrderPrice(OrderComputedPriceRequest request) { public ComputedOrderPriceResponse computedOrderPrice(OrderComputedPriceRequest request) {
SConsumer user = sConsumerService.getSConsumer(); SConsumer user = sConsumerService.getInfo();
return computedPrice(request, user); return computedPrice(request, user);
} }
...@@ -802,8 +802,10 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -802,8 +802,10 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
priceResponse.setPayFee(payPrice); priceResponse.setPayFee(payPrice);
} else { } else {
// 判断优惠券是否可以使用 // 判断优惠券是否可以使用
SConsumerCoupon consumerCoupon = consumerCouponService.getById(request.getCouponId()); if(Objects.nonNull(user)&&Objects.nonNull(request.getCouponId())) {
computedCouponPrice(priceResponse, user, consumerCoupon); SConsumerCoupon consumerCoupon = consumerCouponService.getById(request.getCouponId());
computedCouponPrice(priceResponse, user, consumerCoupon);
}
} }
return priceResponse; return priceResponse;
} }
......
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