新版
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user