Compare commits

...

2 Commits

Author SHA1 Message Date
d4d03f1230 修改排序 2025-07-16 14:28:19 +08:00
3638646b8d 排序 2025-07-16 14:16:35 +08:00

View File

@@ -639,13 +639,13 @@ namespace WMS.Web.Domain.Services
}; };
response.Details.Add(infoDetail); response.Details.Add(infoDetail);
} }
//排序和加序号值 ////排序和加序号值
response.Details = response.Details.OrderByDescending(s => s.Specifications).ThenBy(s => s.Method) //response.Details = response.Details.OrderByDescending(s => s.Specifications).ThenBy(s => s.Method)
// .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty) //// .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty)
// 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).ThenBy(s => s.Specifications).ThenByDescending(s => s.BoxBillNo).ThenByDescending(s=>s.Qty) ////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) //.ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ThenByDescending(s => s.Qty)
.ToList(); //.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++)
@@ -670,7 +670,8 @@ namespace WMS.Web.Domain.Services
//排序和加序号值以下为最先的 //排序和加序号值以下为最先的
response.Details = response.Details.OrderByDescending(s => s.Specifications).ThenByDescending(s => s.Method) response.Details = response.Details.OrderByDescending(s => s.Specifications)
//.ThenByDescending(s => s.Method)
//.ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength) //.ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength)
.ThenByDescending(s => s.Qty).ToList(); .ThenByDescending(s => s.Qty).ToList();