pull/32/head
kunfei 5 years ago
parent 6122fcc4d4
commit 9f9a1291b8
  1. 1
      app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt
  2. 4
      app/src/main/java/io/legado/app/data/entities/SearchBook.kt

@ -13,7 +13,6 @@ 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 searchOrder and originOrder and time")
@Query("SELECT * FROM searchBooks where time >= :time") @Query("SELECT * FROM searchBooks where time >= :time")
fun observeNew(time: Long): DataSource.Factory<Int, SearchBook> fun observeNew(time: Long): DataSource.Factory<Int, SearchBook>

@ -29,9 +29,7 @@ data class SearchBook(
var time: Long = 0L, var time: Long = 0L,
var variable: String? = null, var variable: String? = null,
var bookInfoHtml: String? = null, var bookInfoHtml: String? = null,
var originOrder: Int = 0, var originOrder: Int = 0
var searchOrder: Int = 0,
var originCount: Int = 0
) : Parcelable, BaseBook { ) : Parcelable, BaseBook {
@IgnoredOnParcel @IgnoredOnParcel

Loading…
Cancel
Save