简历修改
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-11-21 16:34:09 +08:00
parent c5e5ac4e45
commit 888be6430a
3 changed files with 17 additions and 4 deletions

View File

@ -77,6 +77,7 @@ namespace IRaCIS.Core.Application.Service
var query = _doctorRepository/*.WhereIf(nation != AttendedReviewerType.USAndCN, t => t.Nation ==(int) nation)*/ var query = _doctorRepository/*.WhereIf(nation != AttendedReviewerType.USAndCN, t => t.Nation ==(int) nation)*/
.Where(x=>x.TrialId==null) .Where(x=>x.TrialId==null)
.WhereIf(inQuery.DepartmentId != null, t => t.DepartmentId == inQuery.DepartmentId) .WhereIf(inQuery.DepartmentId != null, t => t.DepartmentId == inQuery.DepartmentId)
.WhereIf(inQuery.SpecialityId != null, t => t.SpecialityId == inQuery.SpecialityId) .WhereIf(inQuery.SpecialityId != null, t => t.SpecialityId == inQuery.SpecialityId)
.WhereIf(trialConfig.TrialType == TrialType.NoneOfficial, t => t.IsVirtual == true) .WhereIf(trialConfig.TrialType == TrialType.NoneOfficial, t => t.IsVirtual == true)

View File

@ -231,6 +231,8 @@ namespace IRaCIS.Core.Application.Contracts
public class UseEmialGetDoctorInfoInDto public class UseEmialGetDoctorInfoInDto
{ {
public string EmailOrPhone { get; set; } public string EmailOrPhone { get; set; }
public Guid TrialId { get; set; }
} }
public class VerifyEmialGetDoctorInfoInDto public class VerifyEmialGetDoctorInfoInDto

View File

@ -125,6 +125,8 @@ namespace IRaCIS.Core.Application.Contracts
{ {
var dockerInfo = await _doctorRepository.Where(t => t.EMail == inDto.EmailOrPhone || t.Phone == inDto.EmailOrPhone).FirstOrDefaultAsync(); var dockerInfo = await _doctorRepository.Where(t => t.EMail == inDto.EmailOrPhone || t.Phone == inDto.EmailOrPhone).FirstOrDefaultAsync();
if (dockerInfo != null) if (dockerInfo != null)
{ {
return new UseEmialGetDoctorInfoOutDto() return new UseEmialGetDoctorInfoOutDto()
@ -134,13 +136,21 @@ namespace IRaCIS.Core.Application.Contracts
} }
else else
{ {
var isVirtual = true;
if (inDto.TrialId != null)
{
isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
}
Doctor doctor = new Doctor() Doctor doctor = new Doctor()
{ {
EMail = inDto.EmailOrPhone, EMail = inDto.EmailOrPhone,
IsVirtual = false, IsVirtual = isVirtual,
AcceptingNewTrial = false, AcceptingNewTrial = true,
ActivelyReading = false, ResumeStatus = ResumeStatusEnum.Pass,
CooperateStatus = ContractorStatusEnum.Noncooperation, CooperateStatus = ContractorStatusEnum.Cooperation,
ReviewStatus = ReviewerInformationConfirmStatus.ConfirmRefuse ReviewStatus = ReviewerInformationConfirmStatus.ConfirmRefuse
}; };