改排序
This commit is contained in:
@@ -641,10 +641,10 @@ 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)
|
// .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.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)
|
||||||
|
|||||||
Reference in New Issue
Block a user