From 7f070f2a603cc52bdc186571ede06b153ca34509 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 4 Aug 2019 19:59:59 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 68cd99981..668adda13 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,8 @@ 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 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") fun observeNew(time: Long): DataSource.Factory