diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 90964da2d..774868c86 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -18242,6 +18242,11 @@ 文件大小,单位字节 + + + SEGUpdateTime 更新时间 + + 版本开始时间 diff --git a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs index 0278d9fe7..b59c5ba8c 100644 --- a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs +++ b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs @@ -98,7 +98,7 @@ public class SegmentationService(IRepository _segmentationReposito /// /// /// - private async Task SaveSegmentationVersionAsync(SaveSegmentationVersionAsyncInDto inDto) + public async Task SaveSegmentationVersionAsync(SaveSegmentationVersionAsyncInDto inDto) { var data = await _segmentationRepository.FirstOrDefaultNoTrackingAsync(x => x.Id == inDto.SegmentationId); // 如果是新增或修改,记录一条版本信息 @@ -113,7 +113,7 @@ public class SegmentationService(IRepository _segmentationReposito var segmentList = await _segmentRepository .Where(x=>x.CreateTime<= startTime && (!x.IsDeleted||x.DeletedTime> startTime)) - .Where(x => x.SegmentationId == inDto.SegmentationId).OrderBy(x=>x.SegmentNumber).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); + .Where(x => x.SegmentationId == inDto.SegmentationId).OrderBy(x=>x.SegmentNumber).IgnoreQueryFilters().ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); if (data.SEGUrl != string.Empty&&(inDto.SEGUrl!=data.SEGUrl||inDto.IsRestore)) {