fix: 订单优惠券折扣金额不准确修复

This commit is contained in:
张松 2024-11-21 15:03:32 +08:00
parent 052e1a51a4
commit 7c8d22f5ed
1 changed files with 1 additions and 1 deletions

View File

@ -1400,7 +1400,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
couponInfoDTO.setOutRecordList(outRecords);
couponInfoDTO.setCouponMap(usedCouponMap);
return discountAmount;
return discountAmount.multiply(orderInfo.getDiscountRatio());
}
private OrderCouponInfoDTO getCouponInfo(Integer memberId, Integer shopId, List<UserCouponInfoDTO> userCouponInfoDTOList, BigDecimal orderAmount, Set<String> productIds) {