Compare commits
No commits in common. "a2fc2c5075562fc4dfed32771960e5c7592398b9" and "14e95fd3033f4b157a706dcf92a789a841a4782f" have entirely different histories.
a2fc2c5075
...
14e95fd303
|
|
@ -523,8 +523,6 @@ namespace IRaCIS.Application.Contracts
|
|||
{
|
||||
public string BlindName { get; set; }
|
||||
|
||||
public bool IsHaveAccount { get; set; } = false;
|
||||
|
||||
public string BlindNameCN { get; set; } = string.Empty;
|
||||
|
||||
public List<DicView> DoctorDicViewDtos = new List<DicView>();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
IRepository<DoctorDictionary> _doctorDictionaryRepository,
|
||||
IRepository<DoctorSummarize> _doctorSummarizeRepository,
|
||||
IRepository<Enroll> _enrollRepository,
|
||||
IRepository<UserRole> _userRoleRepository,
|
||||
IRepository<Hospital> _hospitalRepository,
|
||||
IRepository<Dictionary> _dictionaryRepository,
|
||||
IRepository<Attachment> _attachmentRepository,
|
||||
|
|
@ -491,7 +490,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
var doctorBasicInfo = (await _doctorRepository.Where(t => t.Id == doctorId)
|
||||
.ProjectTo<DoctorBasicInfoDTO>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
||||
doctorBasicInfo.IsHaveAccount =await _userRoleRepository.AnyAsync(x => x.DoctorId == doctorId);
|
||||
|
||||
return doctorBasicInfo;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
IOptionsMonitor<ServiceVerifyConfigOption> _verifyConfig,
|
||||
IOptionsMonitor<SystemEmailSendConfig> systemEmailConfig,
|
||||
IRepository<IdentityUser> _identityUserRepository,
|
||||
IRepository<Doctor> _doctorRepository,
|
||||
|
||||
ISearcher _searcher, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IFusionCache _fusionCache) : BaseService, IUserService
|
||||
{
|
||||
|
|
@ -183,13 +182,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
await VerifyUserEmailAsync(_userInfo.IdentityUserId, newEmail);
|
||||
|
||||
// 修改用户邮箱的时候 需要修改医生表的邮箱
|
||||
var oldEmail =await _identityUserRepository.Where(t => t.Id == _userInfo.IdentityUserId).Select(t => t.EMail).FirstOrDefaultAsync();
|
||||
|
||||
await _doctorRepository.UpdatePartialFromQueryAsync(x=>x.EMail== oldEmail, u => new Doctor()
|
||||
{
|
||||
EMail = newEmail
|
||||
});
|
||||
|
||||
await _identityUserRepository.UpdatePartialFromQueryAsync(_userInfo.IdentityUserId, u => new IdentityUser()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue