Browse Source

参数使用异常调整

lzk 1 day ago
parent
commit
e58dcbc2f1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

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

@@ -267,19 +267,19 @@ namespace XYY.Service.Standard.Order.FBA
                 //实重/体积立方>200, >300 分别做  1:200标识-1,1:300标识-2
                 if (new List<string>() { "USKPLine", "USKPLine-J" }.Contains(item.ChannelCode))
                 {
-                    if (BillWeight / boxes.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 300)
+                    if (BillWeight / orderBoxs.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 300)
                     {
                         item.GoodsNames += ";1:300";
                         await AddFbaHeavyCargoOtherFee(item.OrderId.Value, item.CustomerConfirmBillWeight.Value * -2.0m, "重货1:300,-2/kg");
                     }
-                    else if (BillWeight / boxes.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 200)
+                    else if (BillWeight / orderBoxs.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 200)
                     {
                         item.GoodsNames += ";1:200";
                         await AddFbaHeavyCargoOtherFee(item.OrderId.Value, item.CustomerConfirmBillWeight.Value * -1.0m, "重货1:200,-1/kg");
                     }
                 }
                 //实重/体积立方>300 做 1:300标识-1
-                if (new List<string>() { "USKPLine-5K", "USKPLine-J-5K" }.Contains(item.ChannelCode) && BillWeight / boxes.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 300)
+                if (new List<string>() { "USKPLine-5K", "USKPLine-J-5K" }.Contains(item.ChannelCode) && BillWeight / orderBoxs.Sum(x => x.OpLength * x.OpWidth * x.OpHeight / 1000000) >= 300)
                 {
                     item.GoodsNames += ";1:300";
                     await AddFbaHeavyCargoOtherFee(item.Id, item.CustomerConfirmBillWeight.Value * -1.0m,"重货1:300,-1/kg");