fix: 支付订单会员价被覆盖修复
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user