From b0b7b1b0d84e96dd6a3e8e12e2846dcda3e53f5b Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 18 Oct 2020 07:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E7=BB=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt b/app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt index e0ffea726..453a45f3e 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt @@ -22,7 +22,7 @@ interface BookGroupDao { @Query("SELECT * FROM book_groups where groupId >= 0 ORDER BY `order`") fun liveDataSelect(): LiveData> - @get:Query("SELECT sum(groupId) FROM book_groups") + @get:Query("SELECT sum(groupId) FROM book_groups where groupId >= 0") val idsSum: Long @get:Query("SELECT MAX(`order`) FROM book_groups")