feat(api): статистика по регламентным работам по ЗО, РГ, РР
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace PARR.API.Contracts.V1.Responses.Statistics
|
||||
{
|
||||
public class StatWorkLoadDataBaseResponse
|
||||
{
|
||||
public List<StatWorkLoadDataResponse> WorkLoad { get; set; }
|
||||
|
||||
public int WorksCount => WorkLoad?.Sum(t => t.TemplateCount) ?? 0;
|
||||
|
||||
public double AverageWorksCount => Math.Round((double)WorksCount / WorkLoad.Count(), 2);
|
||||
}
|
||||
|
||||
public class StatWorkLoadDataResponse
|
||||
{
|
||||
public DateTimeOffset Date { get; set; }
|
||||
public int TemplateCount { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user