提交 1b8db8c1 authored 作者: renjianyu's avatar renjianyu

--no commit message

上级 8c6801ce
......@@ -172,19 +172,9 @@ public class FgEbookController {
list.add(list.get(0));
for (Ebook ebook : list) {
FgEbookChapterVO vo= clmapper.selectchapter(ebook.getId(),1);
if(vo != null) {
Document doc = Jsoup.parse(vo.getText());
System.out.println(doc.getElementsByClass("content").attr("class"));
}
// 目录
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);
}
......@@ -468,7 +458,12 @@ public class FgEbookController {
// PageHelper.orderBy(" orderNum asc, pdfNum asc");
// List<ChapterLibrary> list = clservice.selectByExample(example);
List<ChapterLibrary> list =clmapper.selectchapterList(bookId, orderNum);
for (ChapterLibrary listchapt : list) {
if(listchapt.getLevel() == 1) {
Document doc = Jsoup.parse(listchapt.getText());
listchapt.setText(doc.getElementsByClass("content").text());
}
}
List<ChapterLibrary> voList = Copy.copyList(list , ChapterLibrary.class, obj -> obj.getLevel().intValue() == 0);
tree(list,voList);
return voList;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论