@ -65,10 +65,10 @@ public interface JournalDao extends JpaRepository<Journal,String>,JpaSpecificati
@Query(value="select * from tb_journal where id in ?1 and state='1' order by field(id,?1)",nativeQuery=true)
@Query(value="select * from tb_journal where id in ?1 and state='1' order by field(id,?1)",nativeQuery=true)
List<Journal>orderByField(List<String>objectIds);
List<Journal>orderByField(List<String>objectIds);
@Query(value="select 1 from tb_journal where ?1 in (select journal_no_tmp.journal_no from (select * from tb_journal order by ABS(journal_no) desc limit 10) as journal_no_tmp) and state='1' limit 1",nativeQuery=true)
@Query(value="select 1 from tb_journal where ?1 in (select journal_no_tmp.journal_no from (select * from tb_journal where state='1' order by ABS(journal_no) desc limit 10) as journal_no_tmp) limit 1",nativeQuery=true)
IntegerisLatest10ByJournalNo(StringjournalNo);
IntegerisLatest10ByJournalNo(StringjournalNo);
@Query(value="select 1 from tb_journal where ?1 in (select journal_no_tmp.id from (select * from tb_journal order by ABS(journal_no) desc limit 10) as journal_no_tmp) and state='1' limit 1",nativeQuery=true)
@Query(value="select 1 from tb_journal where ?1 in (select journal_no_tmp.id from (select * from tb_journal where state='1' order by ABS(journal_no) desc limit 10) as journal_no_tmp) limit 1",nativeQuery=true)
IntegerisLatest10ByJournalId(StringjournalId);
IntegerisLatest10ByJournalId(StringjournalId);
@Query(value="select max(ABS(journal_no)) FROM tb_journal where state='1'",nativeQuery=true)
@Query(value="select max(ABS(journal_no)) FROM tb_journal where state='1'",nativeQuery=true)