|
|
@ -135,6 +135,8 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
if (dbAfterSaleOrder.ServiceResult == Model.Enums.ServiceResult.SD退货) |
|
|
|
{ |
|
|
|
if (dbOrder.StorageType != Model.Enums.StorageType.SD) |
|
|
|
throw new BusinessException("只有SD订单才能选择SD退货"); |
|
|
|
dbAfterSaleOrder.SDRefundFreight = editAfterSaleOrderRequest.SDRefundFreight; |
|
|
|
dbAfterSaleOrder.AfterTotalCost = dbAfterSaleOrder.SDRefundFreight + dbAfterSaleOrder.ReissueAfterSaleAmount; |
|
|
|
|
|
|
@ -208,7 +210,7 @@ namespace BBWY.Server.Business |
|
|
|
dbOrderCost.CalculationOrderProfitAndCost(dbOrder, afterSaleOrderList); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
fsql.Transaction(() => |
|
|
|
{ |
|
|
|
fsql.Update<OrderCost>().SetSource(dbOrderCost).ExecuteAffrows(); |
|
|
|