指派其他质控-uat-12

Uat_IRC_Net8
hang 2025-07-16 09:38:24 +08:00
parent 81a4b55e13
commit 21dd3f455c
2 changed files with 29 additions and 2 deletions

View File

@ -139,5 +139,16 @@ namespace IRaCIS.Core.Application.Contracts.DTO
}
public class TrialSelectUserBasicInfo
{
public Guid UserRoleId { get; set; }
public string FullName { get; set; }
public string UserName { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
}
}

View File

@ -56,8 +56,8 @@ namespace IRaCIS.Core.Application.Service
IsDeleted = t.IsDeleted,
UserTypeId = t.UserRole.UserTypeRole.Id,
UserTypeShortName = t.UserRole.UserTypeRole.UserTypeShortName,
CreateTime=t.CreateTime,
UpdateTime=t.UpdateTime,
CreateTime = t.CreateTime,
UpdateTime = t.UpdateTime,
}).ToList(),
}).ToPagedListAsync(inQuery);
@ -315,7 +315,23 @@ namespace IRaCIS.Core.Application.Service
}
public async Task<List<TrialSelectUserBasicInfo>> GetTrialUserRoleList(Guid trialId, UserTypeEnum? userTypeEnum)
{
var list = await _trialIdentityUserRepository.Where(t => t.TrialId == trialId)
.SelectMany(t => t.TrialUserRoleList)
.WhereIf(userTypeEnum != null, t => t.UserRole.UserTypeEnum == userTypeEnum)
.Select(t => new TrialSelectUserBasicInfo()
{
FullName = t.TrialUser.IdentityUser.FullName,
UserRoleId = t.UserRole.Id,
UserName = t.TrialUser.IdentityUser.UserName,
Phone = t.TrialUser.IdentityUser.Phone,
Email = t.TrialUser.IdentityUser.EMail
})
.ToListAsync();
return list;
}
}
}