Browse Source

退款金额取值错误

LuoDLeo 2 tháng trước cách đây
mục cha
commit
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);