@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user