修改上传

Uat_Study
hang 2023-05-04 15:37:21 +08:00
parent f19febaa6e
commit f828a7d1e2
2 changed files with 3 additions and 10 deletions

View File

@ -217,12 +217,9 @@ namespace IRaCIS.Core.Application.Contracts
public class AddOrUpdateStudyDto public class AddOrUpdateStudyDto
{ {
public Guid? Id { get; set; }
public string StudyId { get; set; } = string.Empty; public string StudyId { get; set; } = string.Empty;
//public int Code { get; set; } = 0; //public int Code { get; set; } = 0;
//public string StudyCode { get; set; } = string.Empty; //public string StudyCode { get; set; } = string.Empty;
@ -257,7 +254,6 @@ namespace IRaCIS.Core.Application.Contracts
public class AddOrUpdateSeriesDto public class AddOrUpdateSeriesDto
{ {
public Guid? Id { get; set; }
public string StudyInstanceUid { get; set; } public string StudyInstanceUid { get; set; }
public string SeriesInstanceUid { get; set; } public string SeriesInstanceUid { get; set; }
public int SeriesNumber { get; set; } public int SeriesNumber { get; set; }

View File

@ -205,7 +205,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
else 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); var study = await _dicomstudyRepository.FirstOrDefaultAsync(t => t.Id == studyId);
@ -214,7 +214,6 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
//特殊处理逻辑 //特殊处理逻辑
SpecialArchiveStudyDeal(study); 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); dicomSeries= await _dicomSeriesRepository.AddAsync(series);
//新的序列 那么 检查的序列数量+1 //新的序列 那么 检查的序列数量+1
study.SeriesCount += 1; study.SeriesCount += 1;
} }
else else
{ {