修改查询

Test.EIImageViewer
hang 2023-03-17 14:46:11 +08:00
parent 6aee86990e
commit 13bf9575bf
1 changed files with 4 additions and 3 deletions

View File

@ -135,11 +135,10 @@ namespace IRaCIS.Core.Application.Service
public async Task<List<TrialDoctorUserSelectView>> GetDoctorUserSelectList(Guid trialId, [FromServices] IRepository<Enroll> _enrollRepository)
{
var query = from enroll in _enrollRepository.Where(t => t.TrialId == trialId && t.EnrollStatus >= EnrollStatus.ConfirmIntoGroup)
join user in _userRepository.AsQueryable() on enroll.DoctorId equals user.DoctorId
join user in _userRepository.AsQueryable() on enroll.DoctorUserId equals user.Id
select new TrialDoctorUserSelectView()
{
TrialId = enroll.TrialId,
//ReadingType = enroll.Trial.ReadingType,
DoctorUserId = user.Id,
FullName = user.FullName,
UserCode = user.UserCode,
@ -149,7 +148,9 @@ namespace IRaCIS.Core.Application.Service
};
return await query.ToListAsync();
var list= await query.ToListAsync();
return list;
}