修改仓储名

This commit is contained in:
2022-04-22 09:52:00 +08:00
parent cf2f6d0651
commit 104f51779e
5 changed files with 18 additions and 18 deletions
@@ -93,10 +93,10 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("The mailbox for this user type already exists");
}
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
{
EMail = newEmail
}, true);
});
//删除验证码历史记录
await _verificationCodeRepository.BatchDeleteAsync(t => t.UserId == _userInfo.Id && t.CodeType == 0);
@@ -113,10 +113,10 @@ namespace IRaCIS.Application.Services
{
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
{
Phone = newPhone
},true);
});
return ResponseOutput.Ok();
}
@@ -130,10 +130,10 @@ namespace IRaCIS.Application.Services
{
return ResponseOutput.NotOk("UserId already exists");
}
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
{
UserName = newUserName
},true);
});
return ResponseOutput.Ok();
}
@@ -148,11 +148,11 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> ResetPassword(Guid userId)
{
await _userRepository.UpdatePartialFields(userId, u => new User()
await _userRepository.UpdatePartialFieldsNowAsync(userId, u => new User()
{
Password = MD5Helper.Md5(StaticData.DefaultPassword),
IsFirstAdd = true
}, true);
});
return ResponseOutput.Ok();
}
@@ -248,7 +248,7 @@ namespace IRaCIS.Core.Application
public async Task<IResponseOutput> AbandonTrial(Guid trialId, /*Guid? signId,*/ bool isAbandon)
{
await _trialRepository.UpdatePartialFields(trialId, u => new Trial() { IsDeleted = isAbandon },true);
await _trialRepository.UpdatePartialFieldsNowAsync(trialId, u => new Trial() { IsDeleted = isAbandon });
//var success = await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });