feat: 首页仪表面板 (#103)

[skip ci]
This commit is contained in:
2024-04-25 18:26:57 +08:00
committed by GitHub
parent 8f69c2907b
commit 149e1afa53
58 changed files with 1139 additions and 505 deletions

View File

@ -124,8 +124,11 @@ public sealed class DeptService(DefaultRepository<Sys_Dept> rpo) //
ret = ret.AsTreeCte();
}
if (req.Order == Orders.Random) {
return ret.OrderByRandom();
switch (req.Order) {
case Orders.None:
return ret;
case Orders.Random:
return ret.OrderByRandom();
}
ret = ret.OrderByPropertyNameIf(req.Prop?.Length > 0, req.Prop, req.Order == Orders.Ascending);