提交 8c6801ce authored 作者: renjianyu's avatar renjianyu

--no commit message

上级 7ed7608d
......@@ -178,7 +178,13 @@ public class FgEbookController {
}
// 目录
List<ChapterLibrary> chapterList = this.getDirectory(null,ebook.getId(),1);
for (ChapterLibrary listchapt : chapterList) {
if(listchapt.getLevel() == 1) {
Document doc = Jsoup.parse(listchapt.getText());
System.out.println(doc.getElementsByClass("content").text());
listchapt.setText(doc.getElementsByClass("content").text());
}
}
vo.setChapterList(chapterList);
volist.add(vo);
}
......@@ -462,6 +468,7 @@ public class FgEbookController {
// PageHelper.orderBy(" orderNum asc, pdfNum asc");
// List<ChapterLibrary> list = clservice.selectByExample(example);
List<ChapterLibrary> list =clmapper.selectchapterList(bookId, orderNum);
List<ChapterLibrary> voList = Copy.copyList(list , ChapterLibrary.class, obj -> obj.getLevel().intValue() == 0);
tree(list,voList);
return voList;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论