修改部分字段更新bug
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-23 10:50:11 +08:00
parent e9bb71f5c9
commit 7051e68c09
4 changed files with 6 additions and 8 deletions
@@ -183,7 +183,7 @@ namespace IRaCIS.Core.Application.Service
await VerifyUserEmailAsync(_userInfo.Id, _userInfo.UserTypeId, newEmail);
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFromQueryAsync(_userInfo.Id, u => new User()
{
EMail = newEmail
});
@@ -206,7 +206,7 @@ namespace IRaCIS.Core.Application.Service
await VerifyUserPhoneAsync(_userInfo.Id, _userInfo.UserTypeId, newPhone);
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFromQueryAsync(_userInfo.Id, u => new User()
{
Phone = newPhone
});
@@ -223,7 +223,7 @@ namespace IRaCIS.Core.Application.Service
await VerifyUserNameAsync(_userInfo.Id, newUserName);
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFromQueryAsync(_userInfo.Id, u => new User()
{
UserName = newUserName
});
@@ -277,7 +277,7 @@ namespace IRaCIS.Core.Application.Service
await _mailVerificationService.AdminResetPwdSendEmailAsync(userId, pwd);
await _userRepository.UpdatePartialNowNoQueryAsync(userId, u => new User()
await _userRepository.UpdatePartialFromQueryAsync(userId, u => new User()
{
Password = MD5Helper.Md5(pwd),
IsFirstAdd = true
@@ -101,7 +101,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<IResponseOutput> SetAutoCutNextTask(SetAutoCutNextTaskInDto inDto)
{
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, x => new User()
await _userRepository.UpdatePartialFromQueryAsync(_userInfo.Id, x => new User()
{
AutoCutNextTask = inDto.AutoCutNextTask