我想寫的東西是這樣的:請幫我寫春天的數據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規範標註方法? –