This commit is contained in:
wuchunlei
2024-01-05 10:05:51 +08:00
4 changed files with 24 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.awt.print.Book;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
@@ -597,6 +598,14 @@ public class BookServiceImpl extends ServiceImpl<BookDao, BookEntity> implements
}
@Override
public List<BookEntity> getAncientBooks() {
LambdaQueryWrapper<BookEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(BookEntity::getBookType,1);
List<BookEntity> list = list(wrapper);
return list;
}
@Override
public Page<BookEntity> getUserClockBestBooks(Integer userId, Integer limit, Integer page) {
String exist_sql = "select 1 from user_ebook_buy where book_id = book.id and user_id = " + userId;