From dacbe132a615ca3debdbf06c39ee7a1cb1218ec6 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 24 Oct 2024 13:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/SiteSurvey/TrialSiteSurveyService.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 4a3ac77f3..71d596416 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -107,6 +107,18 @@ namespace IRaCIS.Core.Application.Contracts result.DoctorId = dockerInfo.Id; result.ReviewStatus = dockerInfo.ReviewStatus; } + else + { + Doctor doctor = new Doctor() + { + EMail = inDto.EmailOrPhone + }; + + var info=await _doctorRepository.AddAsync(doctor,true); + + result.DoctorId = info.Id; + result.ReviewStatus = info.ReviewStatus; + } result.Token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo())); }