按数量排序

This commit is contained in:
2025-07-15 17:25:19 +08:00
parent c47810947b
commit 054cdadbfe
2 changed files with 2 additions and 2 deletions

View File

@@ -643,7 +643,7 @@ namespace WMS.Web.Domain.Services
// response.Details = response.Details.OrderByDescending(s => s.Specifications); // response.Details = response.Details.OrderByDescending(s => s.Specifications);
// .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty).ToList(); // .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty).ToList();
// response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1); // response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1);
response.Details = response.Details.OrderByDescending(s => s.Method).OrderByDescending(y=>y.Specifications) response.Details = response.Details.OrderByDescending(s => s.Method).OrderByDescending(y=>y.Specifications).OrderByDescending(x=>x.Qty)
.ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ToList(); .ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ToList();
//alter by yzh 20250715 加了:.OrderByDescending(y=>y.Specifications) //alter by yzh 20250715 加了:.OrderByDescending(y=>y.Specifications)
for (int i = 0; i < response.Details.Count(); i++) for (int i = 0; i < response.Details.Count(); i++)