pull/32/head
kunfei 5 years ago
parent e7b536360b
commit b9c62e2055
  1. 2
      app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt

@ -13,7 +13,7 @@ interface SearchBookDao {
@Query("SELECT * FROM searchBooks") @Query("SELECT * FROM searchBooks")
fun observeAll(): DataSource.Factory<Int, SearchBook> fun observeAll(): DataSource.Factory<Int, SearchBook>
@Query("SELECT name, author, '' bookUrl, '' origin, '' originName, count(origin) originCount, min(time) time, max(intro) intro, max(kind) kind, max(coverUrl) coverUrl, max(latestChapterTitle) latestChapterTitle FROM searchBooks where time >= :time group by name and author order by bookOrder and originOrder and time") @Query("SELECT name, author, '' bookUrl, '' origin, '' originName, count(origin) originCount, min(time) time, max(intro) intro, max(kind) kind, max(coverUrl) coverUrl, max(latestChapterTitle) latestChapterTitle FROM searchBooks where time >= :time group by name and author order by searchOrder and originOrder and time")
fun observeNew(time: Long): DataSource.Factory<Int, SearchBook> fun observeNew(time: Long): DataSource.Factory<Int, SearchBook>

Loading…
Cancel
Save