fix: 比例计算根据可退金额计算
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user