修复bug
parent
cbec6039a7
commit
c3a0ada88f
|
@ -35,6 +35,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
private readonly IRepository<QCChallenge> _qcChallengeRepository;
|
private readonly IRepository<QCChallenge> _qcChallengeRepository;
|
||||||
private readonly IRepository<DicomStudy> _dicomStudyRepository;
|
private readonly IRepository<DicomStudy> _dicomStudyRepository;
|
||||||
private readonly IRepository<Dictionary> _dictionaryrepository;
|
private readonly IRepository<Dictionary> _dictionaryrepository;
|
||||||
|
private readonly IRepository<Subject> _subjectRepository;
|
||||||
private readonly IRepository<Trial> _trialRepository;
|
private readonly IRepository<Trial> _trialRepository;
|
||||||
private readonly IMediator _mediator;
|
private readonly IMediator _mediator;
|
||||||
private readonly IInspectionService _inspectionService;
|
private readonly IInspectionService _inspectionService;
|
||||||
|
@ -50,7 +51,8 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
IInspectionService inspectionService,
|
IInspectionService inspectionService,
|
||||||
IDictionaryService dictionaryService,
|
IDictionaryService dictionaryService,
|
||||||
IRepository<DicomStudy> dicomStudyRepository,
|
IRepository<DicomStudy> dicomStudyRepository,
|
||||||
IRepository<Dictionary> dictionaryrepository
|
IRepository<Dictionary> dictionaryrepository,
|
||||||
|
IRepository<Subject> subjectRepository
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_dicomFileStoreHelper = dicomFileStoreHelper;
|
_dicomFileStoreHelper = dicomFileStoreHelper;
|
||||||
|
@ -58,6 +60,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
_qcChallengeRepository = qcChallengeRepository;
|
_qcChallengeRepository = qcChallengeRepository;
|
||||||
_dicomStudyRepository = dicomStudyRepository;
|
_dicomStudyRepository = dicomStudyRepository;
|
||||||
this._dictionaryrepository = dictionaryrepository;
|
this._dictionaryrepository = dictionaryrepository;
|
||||||
|
this._subjectRepository = subjectRepository;
|
||||||
_mediator = mediator;
|
_mediator = mediator;
|
||||||
_trialRepository = trialRepository;
|
_trialRepository = trialRepository;
|
||||||
_inspectionService = inspectionService;
|
_inspectionService = inspectionService;
|
||||||
|
@ -1937,11 +1940,9 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
|
|
||||||
if (command.SubjectFirstGiveMedicineTime != null)
|
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>();
|
List<DataInspection> datas = new List<DataInspection>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue