这是我的 HQL 查询。但是执行后,出现以下错误。我们如何解决这个问题
错误:意外令牌:d1
select d from DimensionStone d inner join d.stockRegister s where d.stockRegister.stockRegisterId <=? and s.application.applicationId=?
and d.isIssued='No' or (s.stockRegisterId <=? and d.isIssued='Yes' and d.issuedDate>(select max(updatedOn) from StockRegister st where st.stockRegisterId<? and st.application.applicationId=?)) and d not in(select d1 from DimensionStone d1 inner join d1.stockRegister s1 where s1.stockRegisterId <=? and s1.application.applicationId=? d1.isIssued='No'