您可以为
建议自定义查询吗?SELECT p1.*
FROM ngb.payment_bifurcation AS p1
WHERE p1.bill_id = 13528 And exists ( SELECT *
FROM ngb.payment AS p2
WHERE p2.deleted = false and p1.payment_id = p2.id
)
bill_id
是一个参数。
答案 0 :(得分:0)
您可能需要为此创建本机查询。标准数据JPA方法可能无济于事。