|
@@ -2,7 +2,6 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.client.AiptServiceClient;
|
|
|
-import com.diagbot.client.TranServiceClient;
|
|
|
import com.diagbot.client.bean.ConceptBaseVO;
|
|
|
import com.diagbot.client.bean.ConceptExistVO;
|
|
|
import com.diagbot.client.bean.ResponseData;
|
|
@@ -59,10 +58,6 @@ public class PushFacade {
|
|
|
@Autowired
|
|
|
private LisMappingFacade lisMappingFacade;
|
|
|
@Autowired
|
|
|
- private DisTypeFacade disTypeFacade;
|
|
|
- @Autowired
|
|
|
- private TranServiceClient tranServiceClient;
|
|
|
- @Autowired
|
|
|
private AiptServiceClient aiptServiceClient;
|
|
|
@Autowired
|
|
|
private AssembleFacade assembleFacade;
|
|
@@ -230,45 +225,6 @@ public class PushFacade {
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取返回结果标签
|
|
|
- *
|
|
|
- * @param nameList
|
|
|
- * @param pushVO
|
|
|
- * @param type
|
|
|
- * @return
|
|
|
- */
|
|
|
- public List<QuestionDTO> getTagList(List<String> nameList, PushVO pushVO, Integer type) {
|
|
|
- List<QuestionDTO> questionDTOList = Lists.newLinkedList();
|
|
|
- QueryWrapper<QuestionInfo> questionInfoQueryWrapper = new QueryWrapper();
|
|
|
- questionInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).
|
|
|
- in("tag_name", nameList).
|
|
|
- eq("type", type);
|
|
|
- List<QuestionInfo> questionInfoList = questionFacade.list(questionInfoQueryWrapper);
|
|
|
- Map<String, QuestionInfo> questionMap = EntityUtil.makeEntityMap(questionInfoList, "tagName");
|
|
|
- for (String name : nameList) {
|
|
|
- QuestionDTO questionDTO = new QuestionDTO();
|
|
|
- if (questionMap.get(name) != null) {
|
|
|
- QuestionVO questionVO = new QuestionVO();
|
|
|
- questionVO.setAge(pushVO.getAge());
|
|
|
- questionVO.setSexType(pushVO.getSex());
|
|
|
- questionVO.setId(questionMap.get(name).getId());
|
|
|
- questionDTO = questionFacade.getById(questionVO);
|
|
|
- if (questionDTO == null || questionDTO.getId() == null) {
|
|
|
- questionDTO = new QuestionDTO();
|
|
|
- questionDTO.setTagName(name);
|
|
|
- questionDTO.setName(name);
|
|
|
- }
|
|
|
- } else {
|
|
|
- questionDTO.setTagName(name);
|
|
|
- questionDTO.setName(name);
|
|
|
- }
|
|
|
- questionDTOList.add(questionDTO);
|
|
|
- }
|
|
|
- return questionDTOList;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 推理接口-快易检
|
|
|
*
|