fix: 比例计算根据可退金额计算
This commit is contained in:
parent
03562b61e3
commit
5a0e799e96
|
|
@ -2118,7 +2118,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
returnCoupon(orderInfo, true);
|
||||
|
||||
// 设置折扣比例
|
||||
orderInfo.setDiscountRatio(payDTO.getDiscount());
|
||||
orderInfo.setDiscountRatio(payDTO.getDiscount().setScale(4, RoundingMode.DOWN));
|
||||
|
||||
Set<String> productIdSet = new HashSet<>();
|
||||
List<TbCashierCart> cashierCarts = mpCashierCartService.selectByOrderIdAndState(orderInfo.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue