diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs index e41d09f05..0bc4606b5 100644 --- a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs @@ -203,7 +203,7 @@ namespace IRaCIS.Core.Application.Service .WhereIf(inQuery.IsGetNextMedicalReviewTask, x=>x.AuditState!= MedicalReviewAuditState.HaveSigned & - ( x.ReadingMedicalReviewDialogList.Count()==0|| + ( x.ReadingMedicalReviewDialogList.Count()!=0&& x.ReadingMedicalReviewDialogList.Count()>0&& x.ReadingMedicalReviewDialogList.OrderByDescending(x=>x.CreateTime).FirstOrDefault().UserTypeEnumInt==(int)UserTypeEnum.IndependentReviewer))