修改上传
parent
f19febaa6e
commit
f828a7d1e2
|
@ -217,12 +217,9 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
public class AddOrUpdateStudyDto
|
||||
{
|
||||
|
||||
public Guid? Id { get; set; }
|
||||
|
||||
public string StudyId { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
|
||||
//public int Code { get; set; } = 0;
|
||||
|
||||
//public string StudyCode { get; set; } = string.Empty;
|
||||
|
@ -257,7 +254,6 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public class AddOrUpdateSeriesDto
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
public string StudyInstanceUid { get; set; }
|
||||
public string SeriesInstanceUid { get; set; }
|
||||
public int SeriesNumber { get; set; }
|
||||
|
|
|
@ -205,7 +205,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
|||
else
|
||||
{
|
||||
|
||||
var studyId = incommand.Study.Id;
|
||||
var studyId = IdentifierHelper.CreateGuid(incommand.Study.StudyInstanceUid, incommand.TrialId.ToString());;
|
||||
|
||||
var study = await _dicomstudyRepository.FirstOrDefaultAsync(t => t.Id == studyId);
|
||||
|
||||
|
@ -214,7 +214,6 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
|||
//特殊处理逻辑
|
||||
SpecialArchiveStudyDeal(study);
|
||||
|
||||
//await _dicomSeriesRepository.BatchDeleteNoTrackingAsync(t => t.StudyId == incommand.Study.Id);
|
||||
|
||||
|
||||
// 少了整个序列
|
||||
|
@ -245,9 +244,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
|||
dicomSeries= await _dicomSeriesRepository.AddAsync(series);
|
||||
|
||||
//新的序列 那么 检查的序列数量+1
|
||||
study.SeriesCount += 1;
|
||||
|
||||
|
||||
study.SeriesCount += 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue