我想写的东西是这样的:请帮我写春天的数据JPA
find where player id = ?1 && (lastspinneddate < ?2 || lastspinneddate == null)
,但是当我写这样的:
repo.findByPlayerIdAndLastSpinnedDateBeforeOrLastSpinnedDateIsNull(playerId,startOfDay);
,但是这是不正确的像这样回来:
find where (player id = ?1 && lastspinneddate < ?2) || lastspinneddate == null
请帮我写上面的spring数据jpa,在此先感谢
做了你走进一看QueryDSL或API规范标注方法? –