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

This commit is contained in:
张松
2024-11-22 15:42:38 +08:00
parent c63f439a08
commit 52b29f4179

View File

@@ -2825,7 +2825,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
} else {
hasNormalReturn = true;
saleAmount = saleAmount.add(orderDetail.getPrice());
if (remainNum.compareTo(BigDecimal.ZERO) > 0) {
if (remainNum.compareTo(BigDecimal.ZERO) <= 0) {
returnAmount = orderDetail.getPriceAmount();
packAMount = orderDetail.getPackAmount();
}else {