From b988f80e94a5ca40190c6082ae6dc1df5a00cb54 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 15 Jul 2022 16:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Allocation/VisitTaskService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs index c1e223dcb..3b70a8eac 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs @@ -357,13 +357,14 @@ namespace IRaCIS.Core.Application.Service var visitTaskQuery = visitGroupQuery.Select(x=> new IRUnReadSubjectView() { SubjectId=x.Key.SubjectId, - SubjectCode=x.Key.BlindSubjectCode==null?x.Key.Code: x.Key.BlindSubjectCode, + SubjectCode=x.Key.BlindSubjectCode==string.Empty?x.Key.Code: x.Key.BlindSubjectCode, UnReadTaskCount=x.Count(), UnReadTaskList=x.Select(u => new IRUnreadTaskView() { Id = u.Id, IsUrgent = u.IsUrgent, SuggesteFinishedTime = u.SuggesteFinishedTime }).ToList(), }); var totalCount = visitGroupQuery.Count(); - var currentPageData = await visitTaskQuery.OrderBy(x => x.SubjectCode).Skip((iRUnReadSubjectQuery.PageIndex - 1) * iRUnReadSubjectQuery.PageSize).Take(iRUnReadSubjectQuery.PageSize).ToListAsync(); + var currentPageData = await visitTaskQuery.OrderBy(x => x.SubjectCode).Skip((iRUnReadSubjectQuery.PageIndex - 1) * iRUnReadSubjectQuery.PageSize) + .Take(iRUnReadSubjectQuery.PageSize).ToListAsync(); var result = new PageOutput() {