对接返回检查Code
							parent
							
								
									e384470705
								
							
						
					
					
						commit
						35cac0d7e9
					
				| 
						 | 
				
			
			@ -117,6 +117,12 @@ namespace IRaCIS.Core.Application.Service.Third_partyProject.DTO
 | 
			
		|||
        public string Modality { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class InstancePathDTO
 | 
			
		||||
    {
 | 
			
		||||
        public string StudyCode { get; set; }
 | 
			
		||||
        public string InstancePath { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -192,9 +192,9 @@ namespace IRaCIS.Core.Application.Service.Third_partyProject
 | 
			
		|||
        /// <param name="_dicomSeriesRepository"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        [HttpPost]
 | 
			
		||||
        public async Task<List<string>> GetStudyModalityOSSPath(List<Guid> seriesIdList, [FromServices] IRepository<DicomSeries> _dicomSeriesRepository)
 | 
			
		||||
        public async Task<List<InstancePathDTO>> GetStudyModalityOSSPath(List<Guid> seriesIdList, [FromServices] IRepository<DicomSeries> _dicomSeriesRepository)
 | 
			
		||||
        {
 | 
			
		||||
            return await _dicomSeriesRepository.Where(t => seriesIdList.Contains(t.Id)).SelectMany(t => t.DicomInstanceList).Select(t => t.Path).ToListAsync();
 | 
			
		||||
            return await _dicomSeriesRepository.Where(t => seriesIdList.Contains(t.Id)).SelectMany(t => t.DicomInstanceList).Select(t => new InstancePathDTO() {InstancePath= t.Path,StudyCode=t.DicomStudy.StudyCode } ).ToListAsync();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,6 +11,10 @@ namespace IRaCIS.Core.Domain.Models
 | 
			
		|||
        [ForeignKey("SeriesId")]
 | 
			
		||||
        public DicomSeries DicomSerie { get; set; }
 | 
			
		||||
 | 
			
		||||
        [JsonIgnore]
 | 
			
		||||
        [ForeignKey("StudyId")]
 | 
			
		||||
        public DicomStudy DicomStudy { get; set; }
 | 
			
		||||
 | 
			
		||||
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 | 
			
		||||
 | 
			
		||||
        public Guid SeqId { get; set; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue