Compare commits

..

2 Commits

Author SHA1 Message Date
he 3c51287178 Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2024-02-01 09:16:54 +08:00
he 9d8fdcfa12 修改 2024-02-01 09:16:53 +08:00
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 Guid RowId { get; set; }
public decimal RowIndex { get; set; }
public decimal AllPPD { get; set; } public decimal AllPPD { get; set; }
} }

View File

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