Revert "书架显示书籍数量"

This reverts commit 2ecd94ff
pull/457/head
口口吕 4 years ago
parent f60b0890b1
commit d8f0a38a95
  1. 12
      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<Book>

Loading…
Cancel
Save