|
|
@@ -64,7 +64,11 @@ public class QuestionService {
|
|
|
Page<Question> questionPage=null;
|
|
|
if(stem==null){stem="";}
|
|
|
if(noValue(knowledgeIds)&&noValue(labels)){
|
|
|
- questionPage = questionRepository.findByStemLike(stem, pageable);
|
|
|
+ if(stem.length() == 0){
|
|
|
+ questionPage = questionRepository.findAll(pageable);
|
|
|
+ }else{
|
|
|
+ questionPage = questionRepository.findByStemLike(stem, pageable);
|
|
|
+ }
|
|
|
}else if (noValue(knowledgeIds)){
|
|
|
questionPage = questionRepository.findByStemLikeAndLabelsContaining(stem,labels, pageable);
|
|
|
}else if (noValue(labels)){
|