1.enable top10 check when without token or expired

main
Gary 10 months ago
parent f4a3acd769
commit edf3f59f47

@ -42,5 +42,8 @@ public interface JournalDao extends JpaRepository<Journal,String>,JpaSpecificati
@Query(value = "select * from tb_journal where id in ?1 order by field(id,?1)", nativeQuery = true) @Query(value = "select * from tb_journal where id in ?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) limit 1", nativeQuery = true)
Integer isLatest10(String journalNo);
} }

@ -171,12 +171,10 @@ public class JournalService {
} }
public boolean isLatest10(String journalNo) { public boolean isLatest10(String journalNo) {
return true; return null!=journalDao.isLatest10(journalNo);
} }
public List<Journal> orderByField(List<String> objectIds) { public List<Journal> orderByField(List<String> objectIds) {
return journalDao.orderByField(objectIds); return journalDao.orderByField(objectIds);
} }

Loading…
Cancel
Save