fix: 比例计算根据可退金额计算

This commit is contained in:
张松 2024-11-22 16:29:44 +08:00
parent 03562b61e3
commit 5a0e799e96
1 changed files with 1 additions and 1 deletions

View File

@ -2118,7 +2118,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
returnCoupon(orderInfo, true); returnCoupon(orderInfo, true);
// 设置折扣比例 // 设置折扣比例
orderInfo.setDiscountRatio(payDTO.getDiscount()); orderInfo.setDiscountRatio(payDTO.getDiscount().setScale(4, RoundingMode.DOWN));
Set<String> productIdSet = new HashSet<>(); Set<String> productIdSet = new HashSet<>();
List<TbCashierCart> cashierCarts = mpCashierCartService.selectByOrderIdAndState(orderInfo.getId()); List<TbCashierCart> cashierCarts = mpCashierCartService.selectByOrderIdAndState(orderInfo.getId());