fix: 支付订单会员价被覆盖修复
This commit is contained in:
parent
845c9808fe
commit
01b414aec0
|
|
@ -2015,8 +2015,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||||
orderInfo.setProductCouponDiscountAmount(productDiscount);
|
orderInfo.setProductCouponDiscountAmount(productDiscount);
|
||||||
|
|
||||||
// 更新订单信息
|
// 更新订单信息
|
||||||
|
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(orderInfo.getShopId(), orderInfo.getTableId());
|
||||||
OrderPriceDTO priceDTO = createOrderDetailWithCoupon(activateCartInfo, orderInfo, payDTO.getShopId(), false, null);
|
OrderPriceDTO priceDTO = createOrderDetailWithCoupon(activateCartInfo, orderInfo, payDTO.getShopId(), false, shopEatTypeInfoDTO);
|
||||||
BigDecimal finalAmount = priceDTO.getTotalAmount().multiply(BigDecimal.valueOf(payDTO.getDiscount())).setScale(2, RoundingMode.HALF_UP);
|
BigDecimal finalAmount = priceDTO.getTotalAmount().multiply(BigDecimal.valueOf(payDTO.getDiscount())).setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
||||||
orderInfo.setUpdatedAt(System.currentTimeMillis());
|
orderInfo.setUpdatedAt(System.currentTimeMillis());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue