条件排序

parent d9a5bfd3
......@@ -47,7 +47,9 @@ public List<SelectionOptions> GetReportSelection(int groupId)
var arr = groups.Select(w => w.SelectionId);
var selections = selectionRepository.GetEntities(w => arr.Contains(w.ID));
var selections = selectionRepository.GetEntities(w => arr.Contains(w.ID))?.OrderBy(w => w.Sort);
if (selections == null)
return options;
var dispaly = new int[] { (int)SelectionState.UsableAndNotDispaly, (int)SelectionState.NotUsableAndNotDispaly };
foreach (var item in selections.Where(t => t.State.HasValue && !dispaly.Contains(t.State.Value)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment