From d4d03f12302cf35d52a170679b3227e33da5d299 Mon Sep 17 00:00:00 2001 From: 18923810322 <1666941798@qq.com> Date: Wed, 16 Jul 2025 14:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Services/OutStockTaskService.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/WMS.Web.Domain/Services/OutStockTaskService.cs b/src/WMS.Web.Domain/Services/OutStockTaskService.cs index aac826ad..1b346b51 100644 --- a/src/WMS.Web.Domain/Services/OutStockTaskService.cs +++ b/src/WMS.Web.Domain/Services/OutStockTaskService.cs @@ -639,13 +639,13 @@ namespace WMS.Web.Domain.Services }; response.Details.Add(infoDetail); } - //排序和加序号值 - response.Details = response.Details.OrderByDescending(s => s.Specifications).ThenBy(s => s.Method) - // .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty) - // response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1); - //response.Details = response.Details.OrderByDescending(s => s.Method).ThenBy(s => s.Specifications).ThenByDescending(s => s.BoxBillNo).ThenByDescending(s=>s.Qty) - .ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ThenByDescending(s => s.Qty) - .ToList(); + ////排序和加序号值 + //response.Details = response.Details.OrderByDescending(s => s.Specifications).ThenBy(s => s.Method) + //// .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty) + //// response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1); + ////response.Details = response.Details.OrderByDescending(s => s.Method).ThenBy(s => s.Specifications).ThenByDescending(s => s.BoxBillNo).ThenByDescending(s=>s.Qty) + //.ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ThenByDescending(s => s.Qty) + //.ToList(); ////alter by yzh 20250715 加了:.OrderByDescending(y=>y.Specifications) //for (int i = 0; i < response.Details.Count(); i++)