我有以下mysql查询:
select * from traintable
where (train, time) in (select train, max(time) from traintable group by train);
如何在QueryDSL的WHERE
方法中放置多个参数?
query.select(qtraintable).from(qtraintable)
.where(qtraintable.train, qtraintable.time) // How should I do it here?
.in(JPAExpressions.select(qtraintable.train, qtraintable.time.max())
.from(qtraintable)
.groupby(qtraintable.train))