修复bug
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user