修复bug

Uat_Study
hang 2022-04-29 16:53:19 +08:00
parent cbec6039a7
commit c3a0ada88f
1 changed files with 6 additions and 5 deletions

View File

@ -35,6 +35,7 @@ namespace IRaCIS.Core.Application.Image.QA
private readonly IRepository<QCChallenge> _qcChallengeRepository;
private readonly IRepository<DicomStudy> _dicomStudyRepository;
private readonly IRepository<Dictionary> _dictionaryrepository;
private readonly IRepository<Subject> _subjectRepository;
private readonly IRepository<Trial> _trialRepository;
private readonly IMediator _mediator;
private readonly IInspectionService _inspectionService;
@ -50,7 +51,8 @@ namespace IRaCIS.Core.Application.Image.QA
IInspectionService inspectionService,
IDictionaryService dictionaryService,
IRepository<DicomStudy> dicomStudyRepository,
IRepository<Dictionary> dictionaryrepository
IRepository<Dictionary> dictionaryrepository,
IRepository<Subject> subjectRepository
)
{
_dicomFileStoreHelper = dicomFileStoreHelper;
@ -58,6 +60,7 @@ namespace IRaCIS.Core.Application.Image.QA
_qcChallengeRepository = qcChallengeRepository;
_dicomStudyRepository = dicomStudyRepository;
this._dictionaryrepository = dictionaryrepository;
this._subjectRepository = subjectRepository;
_mediator = mediator;
_trialRepository = trialRepository;
_inspectionService = inspectionService;
@ -1937,11 +1940,9 @@ namespace IRaCIS.Core.Application.Image.QA
if (command.SubjectFirstGiveMedicineTime != null)
{
await _repository.BatchUpdateAsync<Subject>(t => t.Id == command.SubjectId, u => new Subject()
{
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime,
});
await _subjectRepository.UpdatePartialFromQueryAsync(command.SubjectId, u => new Subject() { FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime, });
List<DataInspection> datas = new List<DataInspection>();