Compare commits

...

2 Commits

Author SHA1 Message Date
he f6c9490124 Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is running Details
2026-05-07 11:27:11 +08:00
he e84c96f4ee 历史版本 2026-05-07 11:27:10 +08:00
1 changed files with 21 additions and 16 deletions

View File

@ -91,6 +91,9 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
private async Task SaveSegmentationVersionAsync(Guid segmentationId)
{
var data = await _segmentationRepository.FirstOrDefaultNoTrackingAsync(x => x.Id == segmentationId);
if (data.SEGUrl != string.Empty)
{
// 如果是新增或修改,记录一条版本信息
var maxVersion = await _segmentationVersionRepository
.Where(x => x.SegmentationId == data.Id)
@ -113,6 +116,8 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
await _segmentationRepository.SaveChangesAsync();
}
}
/// <summary>
/// 获取分割组历史版本