优化
This commit is contained in:
@@ -38,7 +38,7 @@ interface BookDao {
|
|||||||
|
|
||||||
@Query(
|
@Query(
|
||||||
"""
|
"""
|
||||||
select * from books where type != ${BookType.audio} and origin != '${BookType.local}'
|
select * from books where type != ${BookType.audio} and origin = '${BookType.local}'
|
||||||
and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0
|
and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user