Merge branch 'Test_HIR_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_HIR_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
eff5920568
|
|
@ -552,12 +552,12 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
saveItem.UserCode = AppSettings.GetCodeStr(saveItem.Code, nameof(IdentityUser));
|
||||
|
||||
//if (saveItem.IsZhiZhun)
|
||||
//{
|
||||
// var organizationName = _userInfo.IsEn_Us ? _systemEmailConfig.OrganizationName : _systemEmailConfig.OrganizationNameCN;
|
||||
if (saveItem.IsZhiZhun)
|
||||
{
|
||||
//var organizationName = _userInfo.IsEn_Us ? _systemEmailConfig.OrganizationName : _systemEmailConfig.OrganizationNameCN;
|
||||
|
||||
// saveItem.OrganizationName = organizationName;
|
||||
//}
|
||||
saveItem.OrganizationName = hospitalInfo.HospitalName;
|
||||
}
|
||||
|
||||
|
||||
//saveItem.Password = MD5Helper.Md5(IRCEmailPasswordHelper.GenerateRandomPassword(10));
|
||||
|
|
@ -622,7 +622,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
public async Task<IResponseOutput> UpdateUser(UserCommand model)
|
||||
{
|
||||
|
||||
|
||||
var hospitalInfo = await _fusionCache.GetOrSetAsync(CacheKeys.Hospital, _ => CacheHelper.GetHospitalCode(_hirHospitalRepository), TimeSpan.FromDays(7));
|
||||
|
||||
await VerifyUserNameAsync(model.Id, model.UserName);
|
||||
|
||||
|
|
@ -647,10 +647,10 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
_mapper.Map(model, user);
|
||||
|
||||
//if (user.IsZhiZhun)
|
||||
//{
|
||||
// user.OrganizationName = _userInfo.IsEn_Us ? _systemEmailConfig.OrganizationName : _systemEmailConfig.OrganizationNameCN;
|
||||
//}
|
||||
if (user.IsZhiZhun)
|
||||
{
|
||||
user.OrganizationName = hospitalInfo.HospitalName;
|
||||
}
|
||||
|
||||
await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, LoginUserId = _userInfo.UserRoleId, OptUserId = model.Id, OptType = UserOptType.UpdateUser });
|
||||
|
||||
|
|
|
|||
|
|
@ -1659,9 +1659,9 @@ namespace IRaCIS.Application.Services
|
|||
//}
|
||||
//await _subjectRepository.DeleteAsync(subject);
|
||||
|
||||
await _subjectVisitRepository.DeleteFromQueryAsync(t => t.SubjectId == subjectId, true);
|
||||
await _subjectVisitRepository.SoftDeleteFromQueryAsync(t => t.SubjectId == subjectId, true);
|
||||
|
||||
await _subjectRepository.DeleteFromQueryAsync(t => t.Id == subjectId);
|
||||
await _subjectRepository.SoftDeleteFromQueryAsync(t => t.Id == subjectId);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue