У меня есть таблица ORDERS с id, appId, status, orderId.
статус может - OK, ONHOLD, DONE, REJECT и т. Д.
For this use case i want to filter with
status OK and ONHOLD
and order
if status is "OK" - I want to get allow all orderIds
if status is "ONHOLD" - only get ids with whiteList orders.
Here the statusList has 2 Strings and whiteListOrders dynamically generated list
public List<Long> getIds(
@Bind("appId") String appId,
@BindIn("statusList") List<String> statusList,
@BindIn("whiteListOrders") List<String> whiteListOrders);
Как этого добиться в запросе mysql