IRC_NewDev
he 2024-02-01 09:16:53 +08:00
parent abe77916a3
commit 9d8fdcfa12
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,8 @@ namespace IRaCIS.Core.Application.ViewModel
{
public Guid RowId { get; set; }
public decimal RowIndex { get; set; }
public decimal AllPPD { get; set; }
}

View File

@ -1034,6 +1034,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
result.Add(new GetSplitPPdOutDto()
{
RowId = answerList.Where(x => x.RowIndex == i).Select(x => x.RowId).FirstOrDefault(),
RowIndex = i,
AllPPD = answerList.Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
});
}