QueryDSL两张表联接查询

时间:2018-12-05 12:48:21

标签: querydsl

我需要在sql下创建querydsl动态查询:

select merchant.merchantName
, count(transaction.transactionID) from transaction
inner join mer_merchant merchant on merchant.id = transaction.merchant_id
inner join serviceProvider serviceProvider on merchant.serviceProvider
where serviceProvider.serviceProviderID = 13 and merchant.merchantName 
like '%jazz%' and transaction.type = 0
group by merchant.merchantName;

预先感谢!

0 个答案:

没有答案