对这个 Mysql 查询到 QueryDSL 谓词有任何帮助吗?
我正在使用 QueryDSL 2.9.0 + Spring-data-jpa 1.3.2 + hibernate
select itemkey, issuedt, writedate
from Taxinvoice
where
DATEDIFF(writeDate,ifnull((select closeDate from IssueCloseDate where YearMonth = date_format(writedate,'%Y%m'))
,Date_Add(Date_Add(writeDate,interval 10-day(writedate) DAY), interval 1 MONTH))) > 0
可以做到吗?:(
我非常感谢您能提供的任何帮助。