0

For the below sql script I can write the below method(findByCreateDateBetweenorRRNOrCurrency).

Page<CustomObject> findByCreateDateBetweenAndPoutRrnOrPoutPassport(Pageable pageable, Date startDate, Date endDate, String RRN, String Currency);

where

createDate between CONVERT(Datetime, '2018-06-29 16:17:15.763', 120) and CONVERT(Datetime, '2018-06-30 16:17:15.763', 120) 
or RRN='N0000002628607' or currency = 'AZN'



How can I write findBy method for the below sql script?

where 
createDate between CONVERT(Datetime, '2018-06-29 16:17:15.763', 120) and CONVERT(Datetime, '2018-06-30 16:17:15.763', 120) 
and (RRN='N0000002628607' or currency = 'AZN')
MehmanBashirov
  • 641
  • 1
  • 7
  • 15

0 Answers0