Update ToPivotList

This commit is contained in:
sunkaixuan
2024-01-07 00:10:39 +08:00
parent 932dd36ab6
commit 3a5a37f338

View File

@@ -99,7 +99,7 @@ namespace SqlSugar
.Select(x => row[x.Key] = x.Value) .Select(x => row[x.Key] = x.Value)
.SelectMany(x => properties, (x, y) => row[y.Name] = y.GetValue(rowGroup.Key, null)) .SelectMany(x => properties, (x, y) => row[y.Name] = y.GetValue(rowGroup.Key, null))
.ToList(); .ToList();
return row; return row.OrderBy(it=> rowName.Contains(it.Key)?0:1);
}); });
return rows; return rows;
} }