同步系统标准修改

This commit is contained in:
he
2025-04-07 16:29:31 +08:00
parent 06d12ce709
commit 824b65d5ee
2 changed files with 19 additions and 1 deletions
@@ -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