|
|
@@ -112,9 +112,13 @@ class OrderbookModel
|
|
|
o.currency_id,
|
|
|
o.chain_id,
|
|
|
t.token_commodities_value,
|
|
|
- t.token_commodities_amount
|
|
|
+ t.token_commodities_amount,
|
|
|
+ c.cpr_deliveryPlace_city_name AS cityName,
|
|
|
+ c.cpr_product_quantity AS cprProductQuantity,
|
|
|
+ c.cpr_measure_unit_name AS measureUnitName
|
|
|
FROM "orderbook" o
|
|
|
LEFT JOIN "token" t ON t.token_id = o.token_id
|
|
|
+ LEFT JOIN "cpr" c ON c.cpr_id = t.cpr_id
|
|
|
WHERE UPPER(o.orderbook_state) = UPPER(:state)
|
|
|
AND LOWER(o.orderbook_commodity_type) = LOWER(:commodity_type)
|
|
|
AND o.status_id = :status_id
|