我是使用JPA的QueryDSL的新用户,我需要一些帮助。 我想将下面的查询转换为QueryDSL。
感谢您的帮助。
SELECT
datael.value, apptype.code, COUNT(*)
FROM
appli app
INNER JOIN
appli_type apptype
ON app.appli_type_id = apptype.id
INNER JOIN
data_el datael
ON app.id = datael.appli_id
INNER JOIN
data_el hand
ON hand.appli_id = datael.appli_id
WHERE
hand.ele_id = 67
AND datael.ele_id = 68
AND hand.value = '1'
AND app.received_date BETWEEN '2018-07-03' AND '2018-07-06'
AND app.cur_state = 15
GROUP BY
datael.value,
apptype.code;