当在jpql语句中有or和and时,or连接要加括号
比如:
select notice from Notice notice where (notice.title like ? or notice.content like ? )and notice.noticeType=?
当在jpql语句中有or和and时,or连接要加括号
比如:
select notice from Notice notice where (notice.title like ? or notice.content like ? )and notice.noticeType=?