修改仓储名称

This commit is contained in:
2022-04-26 16:56:18 +08:00
parent f118dd6e42
commit 8f6830ea8d
50 changed files with 173 additions and 167 deletions
@@ -93,7 +93,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("不允许直接删除父节点");
}
var success =await menuRepository.BatchDeleteAsync(u => u.Id == menuId);
var success =await menuRepository.BatchDeleteNoTrackingAsync(u => u.Id == menuId);
return ResponseOutput.Result(success);
}
@@ -73,7 +73,7 @@ namespace IRaCIS.Core.Application.Service
[HttpDelete("{systemNoticeId:guid}")]
public async Task<IResponseOutput> DeleteSystemNotice(Guid systemNoticeId)
{
var success = await _systemNoticeRepository.BatchDeleteAsync(t => t.Id == systemNoticeId);
var success = await _systemNoticeRepository.BatchDeleteNoTrackingAsync(t => t.Id == systemNoticeId);
return ResponseOutput.Result(success);
}
@@ -93,13 +93,13 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("The mailbox for this user type already exists");
}
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
{
EMail = newEmail
});
//删除验证码历史记录
await _verificationCodeRepository.BatchDeleteAsync(t => t.UserId == _userInfo.Id && t.CodeType == 0);
await _verificationCodeRepository.BatchDeleteNoTrackingAsync(t => t.UserId == _userInfo.Id && t.CodeType == 0);
return ResponseOutput.Ok();
@@ -113,7 +113,7 @@ namespace IRaCIS.Application.Services
{
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
{
Phone = newPhone
});
@@ -130,7 +130,7 @@ namespace IRaCIS.Application.Services
{
return ResponseOutput.NotOk("UserId already exists");
}
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
{
UserName = newUserName
});
@@ -148,7 +148,7 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> ResetPassword(Guid userId)
{
await _userRepository.UpdatePartialFieldsNowAsync(userId, u => new User()
await _userRepository.UpdateNowNoQueryAsync(userId, u => new User()
{
Password = MD5Helper.Md5(StaticData.DefaultPassword),
IsFirstAdd = true
@@ -228,7 +228,7 @@ namespace IRaCIS.Application.Services
{
//删除验证码历史记录
await _verificationCodeRepository.BatchDeleteAsync(t => t.Id == verificationRecord.Id);
await _verificationCodeRepository.BatchDeleteNoTrackingAsync(t => t.Id == verificationRecord.Id);
}
}
@@ -260,7 +260,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("password not change");
}
var success = await _userRepository.BatchUpdateAsync(t => t.Id == userId, u => new User()
var success = await _userRepository.BatchUpdateNoTrackingAsync(t => t.Id == userId, u => new User()
{
Password = newPwd,
IsFirstAdd = false
@@ -297,14 +297,14 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("UserId already exists");
}
await _userRepository.BatchUpdateAsync(t => t.Id == _userInfo.Id, u => new User()
await _userRepository.BatchUpdateNoTrackingAsync(t => t.Id == _userInfo.Id, u => new User()
{
UserName = editPwModel.NewUserName,
});
}
var success = await _userRepository.BatchUpdateAsync(t => t.Id == _userInfo.Id, u => new User()
var success = await _userRepository.BatchUpdateNoTrackingAsync(t => t.Id == _userInfo.Id, u => new User()
{
Password = editPwModel.NewPassWord,
IsFirstAdd = false
@@ -318,7 +318,7 @@ namespace IRaCIS.Application.Services
//医生密码
if (await _doctorRepository.AnyAsync(t => t.Id == _userInfo.Id && t.Password == editPwModel.OldPassWord))
{
var success = await _doctorRepository.BatchUpdateAsync(t => t.Id == _userInfo.Id, u => new Doctor()
var success = await _doctorRepository.BatchUpdateNoTrackingAsync(t => t.Id == _userInfo.Id, u => new Doctor()
{
Password = editPwModel.NewPassWord
@@ -445,7 +445,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("This user has participated in the trial and couldn't be deleted");
}
var success = await _userRepository.BatchDeleteAsync(t => t.Id == userId);
var success = await _userRepository.BatchDeleteNoTrackingAsync(t => t.Id == userId);
return ResponseOutput.Result(success);
}
@@ -460,7 +460,7 @@ namespace IRaCIS.Application.Services
[HttpPost("{userId:guid}/{state:int}")]
public async Task<IResponseOutput> UpdateUserState(Guid userId, UserStateEnum state)
{
var success = await _userRepository.BatchUpdateAsync(u => u.Id == userId, t => new User
var success = await _userRepository.BatchUpdateNoTrackingAsync(u => u.Id == userId, t => new User
{
Status = state
});
@@ -83,7 +83,7 @@ namespace IRaCIS.Core.Application.Contracts
return ResponseOutput.NotOk("该用户类型,被某些用户已使用,不能删除");
}
var success = await userTypeServiceRepository.BatchDeleteAsync(t => t.Id == userTypeId);
var success = await userTypeServiceRepository.BatchDeleteNoTrackingAsync(t => t.Id == userTypeId);
return ResponseOutput.Result(success);
}