|
@@ -38,6 +38,7 @@ import com.diagbot.vo.ConceptExistVO;
|
|
import com.diagbot.vo.DeleteQuestionVO;
|
|
import com.diagbot.vo.DeleteQuestionVO;
|
|
import com.diagbot.vo.GetQuestionIdsByTypeVO;
|
|
import com.diagbot.vo.GetQuestionIdsByTypeVO;
|
|
import com.diagbot.vo.GetQuestionInfoVO;
|
|
import com.diagbot.vo.GetQuestionInfoVO;
|
|
|
|
+import com.diagbot.vo.IndexIcssVO;
|
|
import com.diagbot.vo.IndexLexiconVO;
|
|
import com.diagbot.vo.IndexLexiconVO;
|
|
import com.diagbot.vo.QuestionIdsVO;
|
|
import com.diagbot.vo.QuestionIdsVO;
|
|
import com.diagbot.vo.QuestionIndexSubVO;
|
|
import com.diagbot.vo.QuestionIndexSubVO;
|
|
@@ -731,15 +732,17 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- public List<ConceptBaseDTO> indexByLexiconFac(IndexLexiconVO indexLexiconVO) {
|
|
|
|
- RespDTO<List<ConceptBaseDTO>> res = knowledgemanServiceClient.indexByLexiconFac(indexLexiconVO);
|
|
|
|
|
|
+ public List<ConceptBaseDTO> indexByLexiconFac(IndexIcssVO indexIcssVO) {
|
|
|
|
+ IndexLexiconVO vo = new IndexLexiconVO();
|
|
|
|
+ BeanUtil.copyProperties(indexIcssVO, vo);
|
|
|
|
+ RespDTO<List<ConceptBaseDTO>> res = knowledgemanServiceClient.indexByLexiconFac(vo);
|
|
RespDTOUtil.respNGDeal(res, "【远程调用】搜索概念失败");
|
|
RespDTOUtil.respNGDeal(res, "【远程调用】搜索概念失败");
|
|
|
|
|
|
// 过滤已添加的标签
|
|
// 过滤已添加的标签
|
|
List<QuestionInfo> questionInfoList = this.list(new QueryWrapper<QuestionInfo>()
|
|
List<QuestionInfo> questionInfoList = this.list(new QueryWrapper<QuestionInfo>()
|
|
.in("tag_name", res.data.stream().map(row -> row.getName()).collect(Collectors.toList()))
|
|
.in("tag_name", res.data.stream().map(row -> row.getName()).collect(Collectors.toList()))
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
- .eq("type", indexLexiconVO.getType())
|
|
|
|
|
|
+ .eq("type", indexIcssVO.getType())
|
|
.ne("tag_type", TagTypeEnum.T8.getKey()));
|
|
.ne("tag_type", TagTypeEnum.T8.getKey()));
|
|
List<String> nameExist = questionInfoList.stream().map(row -> row.getTagName()).collect(Collectors.toList());
|
|
List<String> nameExist = questionInfoList.stream().map(row -> row.getTagName()).collect(Collectors.toList());
|
|
if (ListUtil.isNotEmpty(nameExist)) {
|
|
if (ListUtil.isNotEmpty(nameExist)) {
|