Browse Source

调整尺寸判断

lzk 2 months ago
parent
commit
d9edbc6e3e
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

@@ -299,9 +299,9 @@ namespace XYY.Service.Standard.Order.FBA
                     //超尺寸:1、任何最长一边之长度超过121厘米;2、第二最长边的长度超过75厘米的包裹。
                     //超重:任何单件货物重量大于等于25公斤;
                     //超尺寸/超重 同时产生时,需要做2个标识
-                    else if (maxLenght > 121 || secondLenght > 75 || tempWeight >= 25)
+                    else if (maxLenght >= 121 || secondLenght >= 75 || tempWeight >= 25)
                     {
-                        if (maxLenght > 121 || secondLenght > 75) { item.GoodsNames += ";超尺寸"; }
+                        if (maxLenght >= 121 || secondLenght >= 75) { item.GoodsNames += ";超尺寸"; }
                         if (tempWeight >= 25) { item.GoodsNames += ";超重"; }
                     }
 
@@ -311,7 +311,7 @@ namespace XYY.Service.Standard.Order.FBA
                     //单件 & 单票重量限制: 1、计费重量大于20kg时;2、围长【最长边 + 宽 * 2 + 高 * 2】大于等于300CM时----提示超过小货渠道可收寄范围;
                     if (tempWeight > 20 || girth >= 300) { throw new Exception("超过小货渠道可收寄范围"); }
                     //超尺寸:1、任何最长一边之长度超过121厘米;2、第二最长边的长度超过75厘米的包裹;
-                    else if (maxLenght > 121 || secondLenght > 75) { item.GoodsNames += ";超尺寸"; }
+                    else if (maxLenght >= 121 || secondLenght >= 75) { item.GoodsNames += ";超尺寸"; }
                 }
 
             }