I have next sql:
SELECT stock_id, consignment_id, SUM(qty), SUM(cost) FROM warehouse_regсonsignmentproduct Where product_id = \'1\' Group BY stock_id, consi