我如何使用 querydsl 执行此操作?

How can I do this using querydsl?

我有这部分查询,我正在将其转换为 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
  • 在sql中提供||是串联
  • idclient_id是数字
  • is_openis_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))));