图书列表-相关古籍-增加国学经典类型

This commit is contained in:
wuchunlei
2024-05-29 17:04:26 +08:00
parent 6651f6cf39
commit f8edb1bb67

View File

@@ -560,7 +560,7 @@ public class BookServiceImpl extends ServiceImpl<BookDao, BookEntity> implements
@Override @Override
public List<BookEntity> getAncientBooks() { public List<BookEntity> getAncientBooks() {
LambdaQueryWrapper<BookEntity> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<BookEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(BookEntity::getBookType,1); wrapper.in(BookEntity::getBookType,1,2);
List<BookEntity> list = list(wrapper); List<BookEntity> list = list(wrapper);
return list; return list;
} }