|
@@ -3,6 +3,7 @@ package com.diagbot.facade;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.entity.QuestionInfo;
|
|
|
import com.diagbot.service.impl.RetrievalServiceImpl;
|
|
|
+import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.vo.RetrievalVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -35,6 +36,16 @@ public class RetrievalFacade extends RetrievalServiceImpl {
|
|
|
if (retrievalVO.getInputStr() == null || retrievalVO.getInputStr() == "") {
|
|
|
retrievalVO.setInputStr(" ");
|
|
|
}
|
|
|
+ //过滤传来的空值
|
|
|
+ if(ListUtil.isEmpty(retrievalVO.getInputIds())){
|
|
|
+ List<Long> questionIds = new ArrayList<>();
|
|
|
+ for (Long questionId:retrievalVO.getInputIds()) {
|
|
|
+ if (0 != questionId.longValue()){
|
|
|
+ questionIds.add(questionId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ retrievalVO.setInputIds(questionIds);
|
|
|
+ }
|
|
|
//获取同义词标签信息
|
|
|
List<RetrievalDTO> data = this.getSymptopInfo(retrievalVO);
|
|
|
List<Long> selfIds = new ArrayList<>();
|