修改非dicom 设置删除,检查上的数量不变更
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2025-07-11 16:24:31 +08:00
parent 09db5e13b8
commit c8a70fd385
1 changed files with 8 additions and 0 deletions

View File

@ -961,6 +961,9 @@ namespace IRaCIS.Core.Application.Image.QA
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)
{
noneDicomStudyFile.IsReading = false;
@ -972,10 +975,15 @@ namespace IRaCIS.Core.Application.Image.QA
else if (state == 4)
{
noneDicomStudyFile.IsDeleted = true;
noneDicomStudy.FileCount = noneDicomStudy.FileCount - 1;
}
else if (state == 5)
{
noneDicomStudyFile.IsDeleted = false;
noneDicomStudy.FileCount = noneDicomStudy.FileCount + 1;
}
}