同步系统标准修改
This commit is contained in:
@@ -22,6 +22,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
IRepository<ClinicalDataTrialSet> _clinicalDataTrialSetRepository,
|
||||
IRepository<ClinicalDataSystemSet> _clinicalDataSystemSetRepository,
|
||||
IRepository<Dictionary> _dictionaryRepository,
|
||||
IRepository<CriterionNidusSystem> _criterionNidusSystemRepository,
|
||||
IRepository<SystemCriterionDictionaryCode> _systemCriterionDictionaryCodeRepository,
|
||||
IReadingImageTaskService _iReadingImageTaskService,
|
||||
IRepository<ReadingSystemCriterionDictionary> _readingSystemCriterionDictionaryRepository,
|
||||
@@ -1044,7 +1045,17 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
#endregion
|
||||
|
||||
#region criterionNidus
|
||||
var criterionNidusSystems = await _criterionNidusSystemRepository.Where(x => x.CriterionId == inDto.SourceSystemCriterionId).ToListAsync();
|
||||
|
||||
criterionNidusSystems.ForEach(x =>
|
||||
{
|
||||
x.Id = NewId.NextGuid();
|
||||
x.CriterionId = inDto.NewSystemCriterionId;
|
||||
});
|
||||
await _criterionNidusSystemRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.NewSystemCriterionId);
|
||||
await _criterionNidusSystemRepository.AddRangeAsync(criterionNidusSystems);
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user