1
z8018
2025-04-08 e69f814f50fd59739dbedd88518dc8cb8d2ed3ee
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/OrderDetailsService.cs
@@ -40,8 +40,6 @@
using WIDESEAWCS_Core.Enums;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_DTO.BasicInfo;
using WIDESEAWCS_DTO.Enum;
using WIDESEAWCS_DTO.TaskInfo;
using WIDESEAWCS_IBasicInfoRepository;
using WIDESEAWCS_IBasicInfoService;
using WIDESEAWCS_Model.Models;
@@ -58,11 +56,18 @@
        private static bool toggle = false;
        private static int lastStaion = 0;
        public int GetOrderDetails(string barcode, List<int> useableStations)
        public int GetOrderDetails(string barcode, List<int> useableStations, out ProductInfoDTO productInfo)
        {
            OrderDetails? orderDetails = BaseDal.QueryData(x => x.Orderdetails_outid == barcode).FirstOrDefault();
            if (orderDetails != null)
            {
                productInfo = new ProductInfoDTO()
                {
                    Code = barcode,
                    Height = Convert.ToInt32(orderDetails.Orderdetails_thickness),
                    Length = Convert.ToInt32(orderDetails.Orderdetails_length),
                    Width = Convert.ToInt32(orderDetails.Orderdetails_width),
                };
                useableStations = useableStations.OrderByDescending(x => x).ToList();
                if (orderDetails.Orderdetails_width <= 800 && orderDetails.Orderdetails_width >= 50)//1,2,3
                {
@@ -121,6 +126,7 @@
            }
            else
            {
                productInfo = new ProductInfoDTO();
                return -1;
            }
        }