功能修改

This commit is contained in:
he
2026-04-23 14:56:25 +08:00
parent b29ed4d6a2
commit b5e6a81a52
5 changed files with 22159 additions and 3 deletions
@@ -117,7 +117,7 @@ namespace IRaCIS.Core.Application.Service
public async Task<IResponseOutput> SetAutoCutNextTask(SetAutoCutNextTaskInDto inDto)
{
var userConfig = await _readingUserConfigRepository.FirstOrDefaultAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
var userConfig = await _readingUserConfigRepository.FirstOrDefaultNoTrackingAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
if (userConfig == null)
{
@@ -131,7 +131,7 @@ namespace IRaCIS.Core.Application.Service
}
else
{
await _readingUserConfigRepository.UpdatePartialFromQueryAsync(x => x.Id == userConfig.Id, x => new ReadingUserConfig
await _readingUserConfigRepository.UpdatePartialFromQueryAsync(x=>x.Id==userConfig.Id, x => new ReadingUserConfig
{
AutoCutNextTask = inDto.AutoCutNextTask,
IsDoubleScreen = inDto.IsDoubleScreen,
@@ -139,7 +139,7 @@ namespace IRaCIS.Core.Application.Service
}
await _userRoleRepository.SaveChangesAsync();
await _readingUserConfigRepository.SaveChangesAsync();
return ResponseOutput.Ok();
}