修改一版
This commit is contained in:
@@ -393,8 +393,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
else
|
||||
{
|
||||
|
||||
var taskQuery = _visitTaskRepository.Where(x => x.TrialId == iRUnReadSubjectQuery.TrialId && x.DoctorUserId == _userInfo.Id && x.TaskState == TaskState.Effect)
|
||||
.Where(x => !x.Subject.IsDeleted).Where(x => x.Subject.SubjectDoctorList.Where(y => y.TrialId == iRUnReadSubjectQuery.TrialId && y.DoctorUserId == _userInfo.Id).Count() > 0);
|
||||
var taskQuery = _visitTaskRepository.Where(x => x.TrialId == iRUnReadSubjectQuery.TrialId && x.DoctorUserId == _userInfo.Id&&x.TaskState == TaskState.Effect)
|
||||
.Where(x => !x.Subject.IsDeleted);
|
||||
|
||||
IRUnReadOutDto iRUnReadOut = new IRUnReadOutDto()
|
||||
{
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace IRaCIS.Application.Services
|
||||
else if (inDto.SubjectId != null)
|
||||
{
|
||||
var subjectList =await _subjectRepository.Where(t => t.TrialId == inDto.TrialId)
|
||||
.Where(t => t.SubjectDoctorList.Any(t => t.DoctorUserId == _userInfo.Id))
|
||||
|
||||
.Select(s => new SubjectTask()
|
||||
{
|
||||
SubjectId = s.Id,
|
||||
|
||||
Reference in New Issue
Block a user