Uat_Study
parent
dafec6e18f
commit
871e9d4a21
|
@ -632,28 +632,28 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
string errorMassage = string.Empty;
|
||||
|
||||
//var rowAnswerList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && (x.MeasureData == string.Empty || x.MeasureData == null))
|
||||
// .Select(x => new
|
||||
// {
|
||||
// x.ReadingQuestionTrial.OrderMark,
|
||||
// x.RowIndex,
|
||||
// x.Id,
|
||||
// }).ToListAsync();
|
||||
var rowAnswerList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && (x.MeasureData == string.Empty || x.MeasureData == null))
|
||||
.Select(x => new
|
||||
{
|
||||
x.ReadingQuestionTrial.OrderMark,
|
||||
x.RowIndex,
|
||||
x.Id,
|
||||
}).ToListAsync();
|
||||
|
||||
|
||||
//var unableEvaluateRowIds = await _readingTableQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.Answer == TargetState.UnableEvaluate.GetEnumInt()
|
||||
// && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.State
|
||||
//)
|
||||
// .Select(x => x.RowId).Distinct().ToListAsync();
|
||||
var unableEvaluateRowIds = await _readingTableQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.Answer == EvaluationOfState.Benign.GetEnumInt()
|
||||
&& x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.State
|
||||
)
|
||||
.Select(x => x.RowId).Distinct().ToListAsync();
|
||||
|
||||
|
||||
//IEnumerable<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||
IEnumerable<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||
|
||||
|
||||
//if (measureDataList.Count() > 0)
|
||||
//{
|
||||
// errorMassage += $" 病灶{ string.Join(',', measureDataList)}不存在标记,";
|
||||
//}
|
||||
if (measureDataList.Count() > 0)
|
||||
{
|
||||
errorMassage += $" 病灶{ string.Join(',', measureDataList)}不存在标记,";
|
||||
}
|
||||
|
||||
|
||||
if (tableAnswerList.Count > 0)
|
||||
|
|
Loading…
Reference in New Issue