修改一版

Uat_Study
he 2022-05-07 14:22:49 +08:00
parent 6ca56c5341
commit e74edc585d
3 changed files with 7 additions and 4 deletions

View File

@ -122,7 +122,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<List<FrontAuditConfig>> GetChildrenItem(GetChildrenItem item)
{
var list =await (from data in _repository.GetQueryable<FrontAuditConfig>().Where(x => x.Identification == item.Identification)
var list =await (from data in _repository.GetQueryable<FrontAuditConfig>().Where(x => x.Identification == item.Identification&&x.Identification!=string.Empty&&x.Identification!=null)
join childrenType in _repository.GetQueryable<FrontAuditConfig>() on data.Id equals childrenType.ParentId
select childrenType).OrderBy(x=>x.Sort).ToListAsync();
return list;

View File

@ -32,6 +32,7 @@ namespace IRaCIS.Core.Application.Image.QA
private readonly IRepository<DicomStudy> _dicomStudyRepository;
private readonly IRepository<DicomSeries> _dicomSeriesrepository;
private readonly IRepository<Subject> _subjectRepository;
private readonly IRepository<QCChallengeDialog> _qCChallengeDialogrepository;
private readonly IRepository<Trial> _trialRepository;
private readonly IMediator _mediator;
@ -43,7 +44,8 @@ namespace IRaCIS.Core.Application.Image.QA
IMediator mediator,
IRepository<DicomStudy> dicomStudyRepository,
IRepository<DicomSeries> dicomSeriesrepository,
IRepository<Subject> subjectRepository
IRepository<Subject> subjectRepository,
IRepository<QCChallengeDialog> qCChallengeDialogrepository
)
{
_dicomFileStoreHelper = dicomFileStoreHelper;
@ -52,6 +54,7 @@ namespace IRaCIS.Core.Application.Image.QA
_dicomStudyRepository = dicomStudyRepository;
this._dicomSeriesrepository = dicomSeriesrepository;
this._subjectRepository = subjectRepository;
this._qCChallengeDialogrepository = qCChallengeDialogrepository;
_mediator = mediator;
_trialRepository = trialRepository;
}
@ -229,7 +232,7 @@ namespace IRaCIS.Core.Application.Image.QA
{
var qaReply = _mapper.Map<QCChallengeDialog>(qaDialogCommand);
await _repository.AddAsync(qaReply);
await _qCChallengeDialogrepository.AddAsync(qaReply);
qaReply.UserTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt;

View File

@ -237,7 +237,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
//一致性核查
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(CheckChallengeDialog)))
{
type = _userInfo.UserTypeShortName + "/" + type;
await InsertInspection<CheckChallengeDialog>(item, type, x => new DataInspection()
{
GeneralId = x.Id,