feat: 优化

pull/243/head
gedoor 5 years ago
parent 5bf2fdb352
commit 529e4d50be
  1. 2
      app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt

@ -19,7 +19,7 @@ interface SearchBookDao {
@Query("select * from searchBooks where bookUrl = :bookUrl")
fun getSearchBook(bookUrl: String): SearchBook?
@Query("select * from searchBooks where name = :name and author = :author and origin in (select bookSourceUrl from book_sources where enabled = 1) order by originOrder limit 1")
@Query("select * from searchBooks where name = :name and author = :author and origin in (select bookSourceUrl from book_sources) order by originOrder limit 1")
fun getFirstByNameAuthor(name: String, author: String): SearchBook?
@Query(

Loading…
Cancel
Save