fix fuzzySearch filter -> unPublished & unEffictive

main
wangqing 8 months ago
parent 6dbc6d2345
commit 445c5ec173

@ -86,7 +86,7 @@ public interface JournalDao extends JpaRepository<Journal,String>,JpaSpecificati
@Query(value = "select * from tb_journal where state='1' and is_publish='1' and journal_no=?1", nativeQuery = true)
Journal findValidJournalByJournalNo(String journalNo);
@Query(value = "select * from tb_journal where match(journal_no, title) against(?1 IN BOOLEAN MODE) limit ?2,?3 ", nativeQuery = true)
@Query(value = "select * from tb_journal where match(journal_no, title) against(?1 IN BOOLEAN MODE) and state='1' and is_publish='1' limit ?2,?3 ", nativeQuery = true)
List<Journal> fuzzySearch(String keyword, int offset, int limit);
@Query(value = "select journal_no FROM tb_journal where id=?1", nativeQuery = true)

Loading…
Cancel
Save