From 702e20c8345dd5a029abf460be8f995d2e23655b Mon Sep 17 00:00:00 2001 From: he <1097837524@qq.com> Date: Mon, 4 Nov 2024 18:45:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Progranm.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/IRaCIS.Core.API/Progranm.cs b/IRaCIS.Core.API/Progranm.cs index 24df3381c..8e25dd90c 100644 --- a/IRaCIS.Core.API/Progranm.cs +++ b/IRaCIS.Core.API/Progranm.cs @@ -52,6 +52,7 @@ SerilogExtension.AddSerilogSetup(enviromentName); var builder = WebApplication.CreateBuilder(new WebApplicationOptions { + EnvironmentName = enviromentName }); From 424a05c2115dafff3510ff3b9f1a06d881d54ef6 Mon Sep 17 00:00:00 2001 From: he <1097837524@qq.com> Date: Tue, 5 Nov 2024 13:07:24 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=AE=80=E5=8E=86=E4=BF=A1=E6=81=AF?= =?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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 343715d62..aa7f788c0 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -162,6 +162,12 @@ namespace IRaCIS.Core.Application.Contracts var info=await _doctorRepository.AddAsync(doctor,true); + await _userRepository.BatchUpdateNoTrackingAsync(x => x.EMail == inDto.EmailOrPhone, x => new User() + { + DoctorId = info.DoctorId, + + }); + result.DoctorId = info.Id; result.ReviewStatus = info.ReviewStatus; } From 5202ee7bd6bf3cb41d34b6ba08603586ff08c759 Mon Sep 17 00:00:00 2001 From: he <1097837524@qq.com> Date: Tue, 5 Nov 2024 14:12:46 +0800 Subject: [PATCH 3/3] =?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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index aa7f788c0..db167c0c4 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -162,11 +162,11 @@ namespace IRaCIS.Core.Application.Contracts var info=await _doctorRepository.AddAsync(doctor,true); - await _userRepository.BatchUpdateNoTrackingAsync(x => x.EMail == inDto.EmailOrPhone, x => new User() - { - DoctorId = info.DoctorId, + //await _userRepository.BatchUpdateNoTrackingAsync(x => x.EMail == inDto.EmailOrPhone, x => new User() + //{ + // DoctorId = info.DoctorId, - }); + //}); result.DoctorId = info.Id; result.ReviewStatus = info.ReviewStatus;