mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-06-20 18:58:16 +08:00
fix: 🐛 小问题 (#76)
This commit is contained in:
@ -229,6 +229,7 @@ public sealed class SiteMsgService(
|
||||
var list = await QueryMineInternal(req)
|
||||
.Page(req.Page, req.PageSize)
|
||||
.Count(out var total)
|
||||
.OrderByDescending(a => a.Max(a.Value.Item1.CreatedTime))
|
||||
.ToListAsync(a => new QuerySiteMsgRsp {
|
||||
Id = a.Max(a.Value.Item1.Id)
|
||||
, Title = a.Max(a.Value.Item1.Title)
|
||||
@ -291,7 +292,6 @@ public sealed class SiteMsgService(
|
||||
f.UserSiteMsgStatus != UserSiteMsgStatues.Deleted) &&
|
||||
(a.MsgType == SiteMsgTypes.Public || c.DeptId == contextUserInfo.DeptId ||
|
||||
roleIds.Contains(d.RoleId) || e.UserId == contextUserInfo.Id))
|
||||
.GroupBy((a, _, _, _, _, _) => a.Id)
|
||||
.OrderByDescending(a => a.Value.Item1.CreatedTime);
|
||||
.GroupBy((a, _, _, _, _, _) => a.Id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user