|
@@ -68,6 +68,16 @@ public class QuestionController {
|
68
|
68
|
Integer page = tQuestion.getPage();
|
69
|
69
|
Integer pageSize = tQuestion.getPageSize();
|
70
|
70
|
N_Utils.validation(new Object[]{page,"显示页码",1,pageSize,"显示条数",1});
|
|
71
|
+ //获取所选章节信息
|
|
72
|
+ if(N_Utils.isNotEmpty(tQuestion.getDirectorid()) && !"0".equals(tQuestion.getDirectorid())){
|
|
73
|
+ TDirector director = directorService.getDirectorById(tQuestion.getDirectorid());
|
|
74
|
+ tQuestion.setDirectorLeaf(director.getLeaf());
|
|
75
|
+ //leaf 是否是叶子节点0不是1是
|
|
76
|
+ if(director.getLeaf() == 0){
|
|
77
|
+ //说明不是叶子节点,需要获取其子章节所有信息
|
|
78
|
+ tQuestion.setDirectorall(director.getDirectorall());
|
|
79
|
+ }
|
|
80
|
+ }
|
71
|
81
|
PageHelper.startPage(page, pageSize);
|
72
|
82
|
List<Map<String, Object>> list = tQuestionService.findAll(tQuestion);
|
73
|
83
|
PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|