1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-04 16:11:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

搜索功能前端页面

This commit is contained in:
2022-03-15 19:26:47 +08:00
parent c2079f9064
commit 328d9f0dd2
5 changed files with 78 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ public class BookServiceImpl implements BookService {
BookDOExample bookDOExample = new BookDOExample();
BeanUtils.copyProperties(bookModel, bookDOExample);
List<BookDO> bookDOS = bookDOMapper.selectByExample(bookDOExample);
List<BookDO> bookDOS = bookDOMapper.selectByExampleWithBLOBs(bookDOExample);
List<BookModel> bookModels = new ArrayList<>();
for (BookDO bookDO : bookDOS) {
@@ -73,6 +73,7 @@ public class BookServiceImpl implements BookService {
bookModel.setCopyright(bookDO.getCopyright());
bookModel.setIsDelete(bookDO.getIsDelete());
bookModel.setThumbnail(bookDO.getThumbnail());
bookModel.setLanguage(bookDO.getLanguage());
// 查询得到categoryModel
CategoryModel categoryModel = categoryService.getCategoryById(bookDO.getCategoryId());