stlye: 添加备注

This commit is contained in:
陈淳
2024-03-07 11:44:27 +08:00
parent a7a794c709
commit 65f0445001
6 changed files with 10 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ namespace Yi.Framework.Bbs.Application.Services
return WeekTimeHandler(lastSeven.ToArray());
}
/// <summary>
/// Todo: 可放入领域层
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
private AccessLogDto[] WeekTimeHandler(AccessLogEntity[] data)
{
data = data.Where(x => x.CreationTime >= GetWeekFirst()).OrderByDescending(x => x.CreationTime).DistinctBy(x => x.CreationTime.DayOfWeek).ToArray();