This commit is contained in:
wangjinlei
2023-09-25 16:04:46 +08:00
parent 51340eb1c0
commit 40717b305f
8 changed files with 85 additions and 3 deletions

View File

@@ -132,8 +132,9 @@ public class BookForumArticlesServiceController {
Page<BookEntity> bookEntityPage = bookService.getBaseMapper().selectPage(new Page<>(page, limit), wrapper);
for (BookEntity b :bookEntityPage.getRecords()){
List<BookForumArticlesEntity> forumsLimit = bookForumArticlesService.getForumsLimit(b.getId(), 4);
b.setForums(forumsLimit);
b.setForums(bookForumArticlesService.getForumsLimit(b.getId(), 4));
b.setForumNum(bookForumArticlesService.getForumsCount(b.getId()));
}
return R.ok().put("page",bookEntityPage);

View File

@@ -0,0 +1,11 @@
package com.peanut.modules.book.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("book/teach")
public class BookTeachController {
}