用hql实现SELECT * from expense_main a LEFT JOIN org_person b on a.Fd_expense_id =b.Fd_id where b.Fd_level =2 and a.Fd_create_date >= '2020-04-10' AND a.Fd_create_date <= '2020-05-10'ORDER BY a.Fd_amount DESC
时间: 2023-04-07 15:03:27 浏览: 97
Hibernate_HQL.rar_hibernate HQL_hibernate hql src
我可以回答这个问题。使用HQL语句实现该查询可以如下:
SELECT a, b FROM ExpenseMain a LEFT JOIN a.orgPerson b WHERE b.level = 2 AND a.createDate BETWEEN '2020-04-10' AND '2020-05-10' ORDER BY a.amount DESC
阅读全文