From 745aa71a76544989535ff193f3ede69200bab2db Mon Sep 17 00:00:00 2001
From: z8018 <1282578289@qq.com>
Date: 星期二, 20 五月 2025 14:08:33 +0800
Subject: [PATCH] 未优化的稳定版本

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs"
index 9949841..437b167 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs"
@@ -69,11 +69,20 @@
                     Length = Convert.ToInt32(orderDetails.Orderdetails_length),
                     Width = Convert.ToInt32(orderDetails.Orderdetails_width),
                 };
+
+                int length = productInfo.Length;
+                int width = productInfo.Width;
+                if (length < width)
+                {
+                    length = productInfo.Width;
+                    width = productInfo.Length;
+                }
+
                 useableStations = useableStations.OrderByDescending(x => x).ToList();
-                if (orderDetails.Orderdetails_width < 60)
+                if (width < 100)
                     useableStations = useableStations.Where(x => x != 1).OrderByDescending(x => x).ToList();
 
-                if (orderDetails.Orderdetails_width <= 800 && orderDetails.Orderdetails_width >= 50)//1,2,3
+                if (width <= 800 && width >= 50)//1,2,3
                 {
                     if (lastStaion == 0)
                     {
@@ -95,7 +104,7 @@
                         }
                     }
                 }
-                else if (orderDetails.Orderdetails_width >= 800 && orderDetails.Orderdetails_width <= 1220)//1,2
+                else if (width >= 800 && width <= 1220)//1,2
                 {
                     useableStations = useableStations.Where(x => x != 3).ToList();
 

--
Gitblit v1.9.3