1
z8018
2025-06-10 e46aa927d231af83724683c7286d9db503e24cf7
ÏîÄ¿´úÂë/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();
@@ -177,13 +186,13 @@
                OrderDetails orderDetails = BaseDal.QueryFirst(x => x.Orderdetails_outid == barcode);
                if (orderDetails == null)
                {
                    throw new Exception("未找到条码对应订单信息");
                    throw new Exception($"【{barcode}】未找到条码对应订单信息");
                }
                Orderrows orderrows = _orderrowsRepository.QueryFirst(x => x.id == orderDetails.Orderrowsid);
                if (orderrows == null)
                {
                    throw new Exception($"未找到对应订单头信息");
                    throw new Exception($"【{barcode}】未找到对应订单头信息");
                }
                OrderInfo orderInfo = new OrderInfo()