修改非dicom 设置删除,检查上的数量不变更
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
09db5e13b8
commit
c8a70fd385
|
@ -961,6 +961,9 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
var noneDicomStudyFile = (await _noneDicomStudyFileRepository.Where(t => t.Id == noneDicomStudyFileId, true).IgnoreQueryFilters().FirstOrDefaultAsync()).IfNullThrowException();
|
var noneDicomStudyFile = (await _noneDicomStudyFileRepository.Where(t => t.Id == noneDicomStudyFileId, true).IgnoreQueryFilters().FirstOrDefaultAsync()).IfNullThrowException();
|
||||||
|
|
||||||
|
|
||||||
|
var noneDicomStudy = (await _noneDicomStudyRepository.Where(t => t.Id == noneDicomStudyFile.NoneDicomStudyId, true).IgnoreQueryFilters().FirstOrDefaultAsync()).IfNullThrowException();
|
||||||
|
|
||||||
|
|
||||||
if (state == 1)
|
if (state == 1)
|
||||||
{
|
{
|
||||||
noneDicomStudyFile.IsReading = false;
|
noneDicomStudyFile.IsReading = false;
|
||||||
|
@ -972,10 +975,15 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
else if (state == 4)
|
else if (state == 4)
|
||||||
{
|
{
|
||||||
noneDicomStudyFile.IsDeleted = true;
|
noneDicomStudyFile.IsDeleted = true;
|
||||||
|
|
||||||
|
noneDicomStudy.FileCount = noneDicomStudy.FileCount - 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (state == 5)
|
else if (state == 5)
|
||||||
{
|
{
|
||||||
noneDicomStudyFile.IsDeleted = false;
|
noneDicomStudyFile.IsDeleted = false;
|
||||||
|
|
||||||
|
noneDicomStudy.FileCount = noneDicomStudy.FileCount + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue