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

Test_IRC_Net8
he 2025-12-31 11:48:28 +08:00
parent ade2ffd9c0
commit c9e4f63e03
4 changed files with 24 additions and 16 deletions

View File

@ -663,30 +663,33 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
// 交集
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList(); List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
// 差集
measureDataList = measureDataList.Except(allExists).ToList(); measureDataList = measureDataList.Except(allExists).ToList();
stateIsNullList = stateIsNullList.Except(allExists).ToList(); stateIsNullList = stateIsNullList.Except(allExists).ToList();
if (measureDataList.Count() > 0) if (measureDataList.Count() > 0)
{ {
// 无标记
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
} }
if (stateIsNullList.Count > 0)
if (tableAnswerList.Count > 0)
{ {
// 状态为空
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
} }
if (allExists.Count > 0) if (allExists.Count > 0)
{ {
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ","; // 未做标记且状态为空
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
} }
if (errorMassage != string.Empty) if (errorMassage != string.Empty)
{ {
errorMassage = _localizer["ReadingCalculate_Questionable"] + errorMassage;
throw new BusinessValidationFailedException(errorMassage); throw new BusinessValidationFailedException(errorMassage);
} }

View File

@ -479,8 +479,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
// 交集
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList(); List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
// //
measureDataList = measureDataList.Except(allExists).ToList(); measureDataList = measureDataList.Except(allExists).ToList();
stateIsNullList = stateIsNullList.Except(allExists).ToList(); stateIsNullList = stateIsNullList.Except(allExists).ToList();
if (measureDataList.Count() > 0) if (measureDataList.Count() > 0)
@ -489,7 +490,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
} }
if (tableAnswerList.Count > 0) if (stateIsNullList.Count > 0)
{ {
// 状态为空 // 状态为空
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
@ -498,7 +499,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
if (allExists.Count > 0) if (allExists.Count > 0)
{ {
// 未做标记且状态为空 // 未做标记且状态为空
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
} }

View File

@ -481,8 +481,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
// 交集
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList(); List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
// 取差 //
measureDataList = measureDataList.Except(allExists).ToList(); measureDataList = measureDataList.Except(allExists).ToList();
stateIsNullList = stateIsNullList.Except(allExists).ToList(); stateIsNullList = stateIsNullList.Except(allExists).ToList();
if (measureDataList.Count() > 0) if (measureDataList.Count() > 0)
@ -491,7 +493,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
} }
if (tableAnswerList.Count > 0) if (stateIsNullList.Count > 0)
{ {
// 状态为空 // 状态为空
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
@ -500,7 +502,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
if (allExists.Count > 0) if (allExists.Count > 0)
{ {
// 未做标记且状态为空 // 未做标记且状态为空
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
} }

View File

@ -482,25 +482,27 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
// 交集
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList(); List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
// 差集
measureDataList = measureDataList.Except(allExists).ToList(); measureDataList = measureDataList.Except(allExists).ToList();
stateIsNullList = stateIsNullList.Except(allExists).ToList(); stateIsNullList = stateIsNullList.Except(allExists).ToList();
if (measureDataList.Count() > 0) if (measureDataList.Count() > 0)
{ {
// 无标记
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ","; errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
} }
if (stateIsNullList.Count > 0)
if (tableAnswerList.Count > 0)
{ {
// 状态为空
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ","; errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
} }
if (allExists.Count > 0) if (allExists.Count > 0)
{ {
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ","; // 未做标记且状态为空
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
} }