Skip to content

Commit

Permalink
修复退款修改价申请售后退款的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hupeng committed Dec 6, 2023
1 parent c26cd3e commit 9f1e822
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ public void applyForAfterSales(Long userId, String nickname, StoreAfterSalesPara
//生成售后订单
StoreAfterSales storeAfterSales = new StoreAfterSales();
storeAfterSales.setOrderCode(storeAfterSalesParam.getOrderCode());
storeAfterSales.setRefundAmount(totalPrice);
//此处需要对比原来订单的支付价格
if(totalPrice.compareTo(yxStoreOrder.getPayPrice()) > 0){
storeAfterSales.setRefundAmount(yxStoreOrder.getPayPrice());
}else{
storeAfterSales.setRefundAmount(totalPrice);
}
storeAfterSales.setServiceType(storeAfterSalesParam.getServiceType());
storeAfterSales.setReasons(storeAfterSalesParam.getReasonForApplication());
storeAfterSales.setExplains(storeAfterSalesParam.getApplicationInstructions());
Expand Down

0 comments on commit 9f1e822

Please sign in to comment.