This commit is contained in:
strwbrry1 2024-12-23 23:24:05 +04:00
parent 21405b404e
commit 6b3e4b8f45
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ namespace ProjectPublishing.Reports
}) })
.Union( .Union(
_orderRepository _orderRepository
.ReadOrders() .ReadOrders() // тут где-то
.Where(x => x.OrderDate >= startDate && x.OrderDate <= endDate && x.Materials.Any(y => y.MaterialsId == materialId)) .Where(x => x.OrderDate >= startDate && x.OrderDate <= endDate && x.Materials.Any(y => y.MaterialsId == materialId))
.SelectMany(order => order.Materials .SelectMany(order => order.Materials
.Where(m => m.MaterialsId == materialId) .Where(m => m.MaterialsId == materialId)

View File

@ -86,7 +86,7 @@ WHERE Id=@id";
try try
{ {
using var connection = new NpgsqlConnection(_connectionString.ConnectionString); using var connection = new NpgsqlConnection(_connectionString.ConnectionString);
var querySelect = "SELECT * FROM PrintingOrder"; var querySelect = "SELECT * FROM PrintingOrder"; // возможно сюда фикс
var printingOrders = connection.Query<Order>(querySelect); var printingOrders = connection.Query<Order>(querySelect);
_logger.LogDebug("Полученные объекты: {json}", JsonConvert.SerializeObject(printingOrders)); _logger.LogDebug("Полученные объекты: {json}", JsonConvert.SerializeObject(printingOrders));
return printingOrders; return printingOrders;