IRC_NewDev
he 2024-09-27 17:11:07 +08:00
parent 7c19ecc3f4
commit 7e135367b2
1 changed files with 6 additions and 0 deletions

View File

@ -2895,6 +2895,12 @@ namespace IRaCIS.Core.Application.Service
{ {
skipcount = random.Next(0, count - 1); skipcount = random.Next(0, count - 1);
} }
var maxReadingTime = query.MaxOrDefault(x => x.FirstReadingTime);
if (maxReadingTime != null)
{
query = query.Where(x => x.FirstReadingTime == maxReadingTime);
}
task = await query task = await query
.Select(x => new GetReadingTaskDto() .Select(x => new GetReadingTaskDto()
{ {