添加字段
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2026-05-11 15:33:41 +08:00
parent 547bd54085
commit 44d9c23c0c
7 changed files with 22274 additions and 2 deletions
@@ -18242,6 +18242,11 @@
文件大小,单位字节
</summary>
</member>
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentationVersionView.StartTime">
<summary>
版本开始时间
</summary>
</member>
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentBindingView.IsLock">
<summary>
是否锁定
@@ -94,6 +94,11 @@ public class SegmentationVersionView
public long FileSize { get; set; }
public DateTime CreateTime { get; set; }
public string CreateUserName { get; set; }
/// <summary>
/// 版本开始时间
/// </summary>
public DateTime? StartTime { get; set; }
}
public class SaveSegmentationVersionAsyncInDto
@@ -100,10 +100,10 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
var maxVersion = await _segmentationVersionRepository
.Where(x => x.SegmentationId == data.Id)
.OrderByDescending(x => x.Version)
.Select(x => x.Version)
.FirstOrDefaultAsync();
var newVersion = maxVersion + 1;
var newVersion = maxVersion == null ? 1 : maxVersion.Version + 1;
var startTime = maxVersion != null ? maxVersion.CreateTime : data.UpdateTime ;
var versionEntity = new SegmentationVersion
{
@@ -113,6 +113,7 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
SEGUrl = data.SEGUrl,
FileSize = data.FileSize,
SegmentList= segmentList,
StartTime= startTime,
};
await _segmentationVersionRepository.AddAsync(versionEntity);