готово
This commit is contained in:
parent
3e701009ca
commit
660d0d6e41
@ -42,8 +42,7 @@ internal class ChartReport
|
|||||||
private List<(string Caption, double Value)> GetData(DateTime dateTime, int accessoriesId)
|
private List<(string Caption, double Value)> GetData(DateTime dateTime, int accessoriesId)
|
||||||
{
|
{
|
||||||
return _orderRepository
|
return _orderRepository
|
||||||
.ReadOrder()
|
.ReadOrder(dateTo: dateTime.Date.AddDays(1), accessoriesId: accessoriesId)
|
||||||
.Where(x => x.Date.Date == dateTime.Date && x.AccessoiresOrders.Any(y => y.AccessoriesId == accessoriesId))
|
|
||||||
.GroupBy(x => x.Id, (key, group) => new
|
.GroupBy(x => x.Id, (key, group) => new
|
||||||
{
|
{
|
||||||
Id = key,
|
Id = key,
|
||||||
@ -52,4 +51,5 @@ internal class ChartReport
|
|||||||
.Select(x => (x.Id.ToString(), (double)x.Count))
|
.Select(x => (x.Id.ToString(), (double)x.Count))
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user