提交 102b114e authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 e4a3a289
......@@ -497,11 +497,14 @@ public class FgAudioLibrarySerivceImpl extends
@Override
public List<FgAboutEbookListVO> getRelatedBooks(String id, Integer num) {
PageHelper.orderBy("sort desc");
List<String> reourceIds = mapper.selectReourceIds(id);
if(num != null){
PageHelper.startPage(1, num);
List<String>reourceIds = mapper.selectReourceIds(id);
List<FgAboutEbookListVO>list = new ArrayList<FgAboutEbookListVO>();
if(!reourceIds.isEmpty()) {
if(num != null){
PageHelper.startPage(1, num);
}
list = mapper.getRelatedBooks(reourceIds);
}
List<FgAboutEbookListVO>list = mapper.getRelatedBooks(reourceIds);
return list;
}
}
......@@ -715,10 +715,13 @@ public class FgVideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary, Str
public List<FgAboutEbookListVO> getRelatedBooks(String id, Integer num) {
PageHelper.orderBy("sort desc");
List<String>reourceIds = mapper.selectReourceIds(id);
if(num != null){
PageHelper.startPage(1, num);
List<FgAboutEbookListVO>list = new ArrayList<FgAboutEbookListVO>();
if(!reourceIds.isEmpty()) {
if(num != null){
PageHelper.startPage(1, num);
}
list = mapper.getRelatedBooks(reourceIds);
}
List<FgAboutEbookListVO>list = mapper.getRelatedBooks(reourceIds);
return list;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论