Browse Source

删除调整

lzk 4 days ago
parent
commit
5cf4e03797
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

+ 1 - 1
3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

@@ -298,7 +298,7 @@ namespace XYY.Service.Standard.Order.FBA
         /// <param name="otherFee"></param>
         private async Task AddFbaHeavyCargoOtherFee(int OrderId, decimal otherFee)
         {
-            string sql = $@"delete FBA_Incidental where OrderId={OrderId} and FBAOtherFeeId=(select SMPOtherFeeId from FBA_OtherFee(nolock) where Name='重货优惠' )
+            string sql = $@"delete FBA_Incidental where OrderId={OrderId} and FBAOtherFeeId=(select Id from FBA_OtherFee(nolock) where Name='重货优惠' )
 insert into FBA_Incidental(OrderId,CalculateType,Target,Fee,FBAOtherFeeId,CustomerRemark,JSRemark,SysncJS)
 select {OrderId},0,0,{otherFee},Id,CustomerRemark,JSRemark,SysncJS from FBA_OtherFee(nolock) where Name='重货优惠' ";
             await _unitOfWork.ExecuteAsync(sql);