From 9f9a1291b83cc2506d4c2e8085e6cc5ee7e68419 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 5 Aug 2019 13:59:04 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt | 1 - app/src/main/java/io/legado/app/data/entities/SearchBook.kt | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt index 157a4f1e4..fb58efd8a 100644 --- a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt @@ -13,7 +13,6 @@ interface SearchBookDao { @Query("SELECT * FROM searchBooks") fun observeAll(): DataSource.Factory - // @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") fun observeNew(time: Long): DataSource.Factory diff --git a/app/src/main/java/io/legado/app/data/entities/SearchBook.kt b/app/src/main/java/io/legado/app/data/entities/SearchBook.kt index 66965ea8c..9ac3e181c 100644 --- a/app/src/main/java/io/legado/app/data/entities/SearchBook.kt +++ b/app/src/main/java/io/legado/app/data/entities/SearchBook.kt @@ -29,9 +29,7 @@ data class SearchBook( var time: Long = 0L, var variable: String? = null, var bookInfoHtml: String? = null, - var originOrder: Int = 0, - var searchOrder: Int = 0, - var originCount: Int = 0 + var originOrder: Int = 0 ) : Parcelable, BaseBook { @IgnoredOnParcel