Uat_Study
parent
b5fc28bc18
commit
9dcd9c900a
|
@ -152,6 +152,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
/// <returns></returns>
|
||||
/// <exception cref="BusinessValidationFailedException"></exception>
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
[AllowAnonymous]
|
||||
[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
|
||||
public async Task<IResponseOutput> VerifySendCode(LoginDto userInfo, [FromServices] ITokenService _tokenService)
|
||||
|
|
|
@ -1056,7 +1056,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
var entity = item.Entity as TrialSiteSurvey;
|
||||
if (entity.TrialSite == null)
|
||||
{
|
||||
entity.TrialSite = await _dbContext.TrialSite.Where(x => x.SiteId == entity.SiteId && x.TrialId == entity.TrialId).FirstOrDefaultAsync();
|
||||
entity.TrialSite = await _dbContext.TrialSite.IgnoreQueryFilters().Where(x => x.SiteId == entity.SiteId && x.TrialId == entity.TrialId).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
if (entity.PreliminaryUser == null)
|
||||
|
@ -1069,9 +1069,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
entity.ReviewerUser = await _dbContext.User.Where(x => x.Id == entity.ReviewerUserId).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
var trialSiteId = entity.TrialSite?.Id;
|
||||
|
||||
await InsertInspection<TrialSiteSurvey>(item.Entity as TrialSiteSurvey, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
ObjectRelationParentId = entity.TrialSite.Id,
|
||||
ObjectRelationParentId = trialSiteId,
|
||||
}, new
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue