From 6296c54e2a1d14cc6519f38b9bba1f52dcfd8c58 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 6 May 2026 14:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/Segment/SegmentationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs index e1a14fd42..82ff11a86 100644 --- a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs +++ b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs @@ -34,7 +34,7 @@ public class SegmentationService(IRepository _segmentationReposito IRepository _readingQuestionTrialRepository, IRepository _readingTableQuestionTrialRepository, IRepository _segmentationVersionRepository, - IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IWebHostEnvironment _hostEnvironment): BaseService, ISegmentationService + IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer): BaseService, ISegmentationService { @@ -90,7 +90,7 @@ public class SegmentationService(IRepository _segmentationReposito /// private async Task SaveSegmentationVersionAsync(Guid segmentationId) { - var data = await _segmentationRepository.FirstOrDefaultNoTrackingAsync(x => x.Id == segmentationId.Id.Value); + var data = await _segmentationRepository.FirstOrDefaultNoTrackingAsync(x => x.Id == segmentationId); // 如果是新增或修改,记录一条版本信息 var maxVersion = await _segmentationVersionRepository .Where(x => x.SegmentationId == data.Id)