Compare commits

..

2 Commits

Author SHA1 Message Date
he 02fb4c9753 Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2026-02-05 14:42:07 +08:00
he cf15883d52 添加doctor code 2026-02-05 14:42:05 +08:00
2 changed files with 7 additions and 2 deletions

View File

@ -112,7 +112,7 @@
"IsNeedChangePassWord": true,
//
"ChangePassWordDays": 90,
// 1 Elevate 2 Extensive
// 1 ElevateLiLi 2 Extensive()
"TemplateType": 2,
//
"OpenTrialRelationDelete": true,

View File

@ -178,6 +178,7 @@ namespace IRaCIS.Core.Application.Contracts
isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
}
Doctor doctor = new Doctor()
{
EMail = inDto.EmailOrPhone,
@ -190,6 +191,9 @@ namespace IRaCIS.Core.Application.Contracts
ReviewStatus = ReviewerInformationConfirmStatus.ConfirmRefuse
};
doctor.Code = await _doctorRepository.Select(t => t.Code).DefaultIfEmpty().MaxAsync() + 1;
doctor.ReviewerCode= AppSettings.GetCodeStr(doctor.Code, nameof(Doctor));
var info = await _doctorRepository.AddAsync(doctor, true);
return new UseEmialGetDoctorInfoOutDto()
@ -260,7 +264,8 @@ namespace IRaCIS.Core.Application.Contracts
ReviewStatus = ReviewerInformationConfirmStatus.ConfirmRefuse
};
doctor.Code = await _doctorRepository.Select(t => t.Code).DefaultIfEmpty().MaxAsync() + 1;
doctor.ReviewerCode = AppSettings.GetCodeStr(doctor.Code, nameof(Doctor));
var info = await _doctorRepository.AddAsync(doctor, true);
//await _userRoleRepository.BatchUpdateNoTrackingAsync(x => x.EMail == inDto.EmailOrPhone, x => new User()