修改
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
he 2025-09-26 14:59:43 +08:00
parent 1d38ee3f49
commit 2ba9e6e2d4
7 changed files with 81 additions and 13 deletions

View File

@ -165,7 +165,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
catch (Exception)
{
}
if (result == string.Empty || result == null)
{
result = "-";
}
return result;
@ -563,7 +567,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary>
public string Part { get; set; } = string.Empty;
public int Number { get; set; }
public int? Number { get; set; }
public string Title {
get
@ -572,9 +576,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
{
return $"{Number}{RowMark}{Organ}{Part}";
}
else
else
{
return $"{Number}";
return "-";
}
}

View File

@ -192,7 +192,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
{
VisitLesionInfo target = new VisitLesionInfo
{
Number = i,
Number = null,
};
targetInfo.Add(target);
@ -422,7 +422,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => taskIds.Contains(x.VisitTaskId)).Include(x => x.ReadingQuestionTrial).Include(x => x.ReadingTableQuestionTrial).ToListAsync();
#region 获取各个病灶
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType)
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType,int? minNum=1)
{
List<decimal> targetFocusNum = rowinfoList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType).Select(x => x.RowIndex).OrderBy(x => x).ToList();
@ -451,6 +451,18 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
};
targetInfo.Add(target);
}
if (targetInfo.Count < minNum)
{
Dictionary<string, object> target = new Dictionary<string, object>()
{
{ "RowMark","-"},
{ "Organ","-"},
{ "FirstVisit","-" },
{ "SecondVisit", "-" },
{ "ThirdlyVisit", "-" },
};
targetInfo.Add(target);
}
return targetInfo;
}

View File

@ -150,7 +150,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
{
VisitLesionInfo target = new VisitLesionInfo
{
Number = i,
Number = null,
};
targetInfo.Add(target);
@ -342,7 +342,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => taskIds.Contains(x.VisitTaskId)).Include(x => x.ReadingQuestionTrial).Include(x => x.ReadingTableQuestionTrial).ToListAsync();
#region 获取各个病灶
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType)
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType, int? minNum = 1)
{
List<decimal> targetFocusNum = rowinfoList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType).Select(x => x.RowIndex).OrderBy(x => x).ToList();
@ -371,6 +371,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
};
targetInfo.Add(target);
}
if (targetInfo.Count < minNum)
{
Dictionary<string, object> target = new Dictionary<string, object>()
{
{ "RowMark","-"},
{ "Organ","-"},
{ "FirstVisit","-" },
{ "SecondVisit", "-" },
{ "ThirdlyVisit", "-" },
};
targetInfo.Add(target);
}
return targetInfo;
}

View File

@ -146,7 +146,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => taskIds.Contains(x.VisitTaskId)).Include(x => x.ReadingQuestionTrial).Include(x => x.ReadingTableQuestionTrial).ToListAsync();
#region 获取各个病灶
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType)
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType, int? minNum = 1)
{
List<decimal> targetFocusNum = rowinfoList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType).Select(x => x.RowIndex).OrderBy(x => x).ToList();
@ -165,6 +165,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
};
targetInfo.Add(target);
}
if (targetInfo.Count < minNum)
{
Dictionary<string, object> target = new Dictionary<string, object>()
{
{ "RowMark","-"},
{ "Organ","-"},
{ "FirstVisit","-" },
{ "SecondVisit", "-" },
{ "ThirdlyVisit", "-" },
};
targetInfo.Add(target);
}
return targetInfo;
}

View File

@ -155,7 +155,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
{
VisitLesionInfo target = new VisitLesionInfo
{
Number = i,
Number = null,
};
targetInfo.Add(target);
@ -349,7 +349,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => taskIds.Contains(x.VisitTaskId)).Include(x => x.ReadingQuestionTrial).Include(x => x.ReadingTableQuestionTrial).ToListAsync();
#region 获取各个病灶
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType)
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType, int? minNum = 1)
{
List<decimal> targetFocusNum = rowinfoList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType).Select(x => x.RowIndex).OrderBy(x => x).ToList();
@ -368,6 +368,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
};
targetInfo.Add(target);
}
if (targetInfo.Count < minNum)
{
Dictionary<string, object> target = new Dictionary<string, object>()
{
{ "RowMark","-"},
{ "Organ","-"},
{ "FirstVisit","-" },
{ "SecondVisit", "-" },
{ "ThirdlyVisit", "-" },
};
targetInfo.Add(target);
}
return targetInfo;
}

View File

@ -151,7 +151,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
{
VisitLesionInfo target = new VisitLesionInfo
{
Number = i,
Number = null,
};
targetInfo.Add(target);
@ -342,7 +342,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => taskIds.Contains(x.VisitTaskId)).Include(x => x.ReadingQuestionTrial).Include(x => x.ReadingTableQuestionTrial).ToListAsync();
#region 获取各个病灶
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType)
List<Dictionary<string, object>> getLesionInfo(LesionType lesionType, int? minNum = 1)
{
List<decimal> targetFocusNum = rowinfoList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType).Select(x => x.RowIndex).OrderBy(x => x).ToList();
@ -361,6 +361,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
};
targetInfo.Add(target);
}
if (targetInfo.Count < minNum)
{
Dictionary<string, object> target = new Dictionary<string, object>()
{
{ "RowMark","-"},
{ "Organ","-"},
{ "FirstVisit","-" },
{ "SecondVisit", "-" },
{ "ThirdlyVisit", "-" },
};
targetInfo.Add(target);
}
return targetInfo;
}