Uat_Study
he 2022-07-22 11:35:31 +08:00
parent 9ac48c4ded
commit e1a778c93d
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ namespace IRaCIS.Core.Application.ViewModel
public int UnReadTaskCount { get; set; }
public bool ExixtsReadingApply { get; set; }
public bool ExistReadingApply { get; set; }
public DateTime? SuggesteFinishedTime => UnReadTaskList.Max(t => t.SuggesteFinishedTime);

View File

@ -977,7 +977,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
SubjectId = x.Key.SubjectId,
SubjectCode = x.Key.BlindSubjectCode == string.Empty ? x.Key.Code : x.Key.BlindSubjectCode,
UnReadTaskCount = x.Where(y => y.ReReadingApplyState != ReReadingApplyState.HaveApplyed).Count(),
ExixtsReadingApply = x.Any(y => y.ReReadingApplyState == ReReadingApplyState.HaveApplyed),
ExistReadingApply = x.Any(y => y.ReReadingApplyState == ReReadingApplyState.HaveApplyed),
UnReadTaskList = x.Where(y => y.ReReadingApplyState != ReReadingApplyState.HaveApplyed)
.Select(u => new IRUnreadTaskView() { Id = u.Id, IsUrgent = u.IsUrgent, SuggesteFinishedTime = u.SuggesteFinishedTime }).ToList(),
}).Where(x => x.UnReadTaskCount > 0).OrderBy(x => x.SubjectId);