修改仓储

This commit is contained in:
2022-04-29 15:34:21 +08:00
parent 0be4c2f8ea
commit c91d9517d9
11 changed files with 67 additions and 63 deletions
@@ -93,7 +93,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("The mailbox for this user type already exists");
}
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
{
EMail = newEmail
});
@@ -113,7 +113,7 @@ namespace IRaCIS.Application.Services
{
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
{
Phone = newPhone
});
@@ -130,7 +130,7 @@ namespace IRaCIS.Application.Services
{
return ResponseOutput.NotOk("UserId already exists");
}
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
{
UserName = newUserName
});
@@ -148,7 +148,7 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> ResetPassword(Guid userId)
{
await _userRepository.UpdateNowNoQueryAsync(userId, u => new User()
await _userRepository.UpdatePartialNowNoQueryAsync(userId, u => new User()
{
Password = MD5Helper.Md5(StaticData.DefaultPassword),
IsFirstAdd = true