【发布时间】:2021-04-01 08:43:02
【问题描述】:
我的这部分查询正在转换为 querydsl,我想知道是否有办法实现这种转换
Where...
...
and ce.id || ce.is_open not in (select fut_client.client_id || fut_client.is_available from future_client fut_client)")
【问题讨论】:
我的这部分查询正在转换为 querydsl,我想知道是否有办法实现这种转换
Where...
...
and ce.id || ce.is_open not in (select fut_client.client_id || fut_client.is_available from future_client fut_client)")
【问题讨论】:
假设:
querydsl-sql
||是串联id 和 client_id 是数字is_open 和 is_available 是字符串query.where(someRelationalPathBase.something.eq(someRelationalPathBase.somethingElse)
.and(ce.id.stringValue().concat(ci.isOpen())
.notIn(SQLExpressions.select(futClient.clientId.stringValue().concat(futClient.isAvailable))
.from(futClient))));
【讨论】: