我有如下查询。但是当它执行时我收到错误消息意外令牌:除了
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=?))
except (select d1 from DimensionStone d1 inner join d1.stockRegister s1
where s1.stockRegisterId <=? and s1.application.applicationId=? and
d1.isIssued='No')
我该如何解决这个问题。我已经通过谷歌搜索了足够多的内容。但是我找不到想要的答案。请帮助我