Browse Source

附加费空值处理2

lzk 1 week ago
parent
commit
6f16018293
1 changed files with 1 additions and 0 deletions
  1. 1 0
      3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

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

@@ -470,6 +470,7 @@ namespace XYY.Service.Standard.Order.FBA
             List<FBA_Incidental> incidentals = dto.incidentals.ToList();
             if (incidentals != null && incidentals.Count() > 0)
             {
+                incidentals.RemoveAll(x => x.FBAOtherFeeId == null);
                 var tempData = incidentals.Where(x => (x.SysncJS ?? false)).ToList().CopyList<FBA_Incidental>();
                 foreach (var x in tempData) { x.Target = FBAIncidentalCalculateTarget.结算价; }
                 if (tempData != null && tempData.Count > 0) { incidentals.AddRange(tempData); }