Jasper Report: ошибка при выполнении оператора SQL по параметру коллекции - PullRequest
0 голосов
/ 09 мая 2019

Я создаю отчет, который проходит по параметру коллекции. Имя параметра - «ids», а класс - java.util.Collection.

Мой запрос:

select  * from order_deliveryorder a 
left join order_deliveryorderline b on a.id = b.d_order_id
left join order_item c on c.id = b.product_id
left join order_orderline e on e.id = b.s_order_id
left join order_order f on e.order_id = f.id
left join order_itemsection g on g.id = f.section_id
left join order_location d on d.id = a.location_id
left join order_location h on h.id = a.from_location_id 
where a.id in ('2377900603251741014','2377900603251740997','2377900603251740967')

запрос в яшме:

select  * from order_deliveryorder a 
left join order_deliveryorderline b on a.id = b.d_order_id
left join order_item c on c.id = b.product_id
left join order_orderline e on e.id = b.s_order_id
left join order_order f on e.order_id = f.id
left join order_itemsection g on g.id = f.section_id
left join order_location d on d.id = a.location_id
left join order_location h on h.id = a.from_location_id 
where $X{IN, a.id,  ids}

Значение параметра "ids" равно ["2377900603251741014", "2377900603251740997", "2377900603251740967"]

В конце встретил ошибку при выполнении оператора sql.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...