From d8f0a38a951bf7803800ea4be889d843d9740cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A3=E5=8F=A3=E5=90=95?= <156081428@qq.com> Date: Sun, 1 Nov 2020 16:31:25 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=B9=A6=E6=9E=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B9=A6=E7=B1=8D=E6=95=B0=E9=87=8F"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2ecd94ff --- app/src/main/java/io/legado/app/data/dao/BookDao.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/dao/BookDao.kt b/app/src/main/java/io/legado/app/data/dao/BookDao.kt index 39986674a..8794296f6 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookDao.kt @@ -45,18 +45,6 @@ interface BookDao { @get:Query("select count(bookUrl) from books where (SELECT sum(groupId) FROM book_groups) & `group` = 0") val noGroupSize: Int - @Query("select count(bookUrl) from books where (SELECT sum(groupId) FROM book_groups) & `group` = :groupId") - fun groupCount(groupId: Long): Int - - @get:Query("SELECT count(*) FROM books where origin = '${BookType.local}'") - val localBookCount: Int - - @get:Query("SELECT count(*) FROM books where origin = '${BookType.audio}'") - val audioBookCount: Int - - @get:Query("SELECT count(*) FROM books where origin != '${BookType.audio}' and origin != '${BookType.local}' and `group` = 0") - val noneBookCount: Int - @get:Query("SELECT * FROM books where origin <> '${BookType.local}' and type = 0") val webBooks: List