lzk 1 vecka sedan
förälder
incheckning
5cf4e03797
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);