浏览代码

退款金额取值错误

LuoDLeo 2 月之前
父节点
当前提交
14187217f8

+ 1 - 1
src/main/java/org/springblade/modules/finance/service/impl/AfterSalesServiceImpl.java

@@ -387,7 +387,7 @@ public class AfterSalesServiceImpl extends ServiceImpl<AfterSalesMapper, AfterSa
 		}
 
 		BigDecimal refundPrice = orderGoods.getGoodsPrice().multiply(BigDecimal.valueOf(orderGoods.getGoodsNum()));
-		orderService.commonRefund(order.getOrderNo(), order.getId(), refundPrice, order.getTotalAmount(), afterSalesId);
+		orderService.commonRefund(order.getOrderNo(), order.getId(), refundPrice, order.getPaymentAmount(), afterSalesId);
 
 		afterSales.setIsArrived(YesOrNoEnum.YES.getValue());
 		this.updateById(afterSales);