|
@@ -5,8 +5,6 @@ import com.diagbot.dto.ConceptBaseDTO;
|
|
import com.diagbot.dto.ConceptRetrievalDTO;
|
|
import com.diagbot.dto.ConceptRetrievalDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.entity.Symptom;
|
|
import com.diagbot.entity.Symptom;
|
|
-import com.diagbot.entity.SymptomWrapper;
|
|
|
|
-import com.diagbot.service.impl.SymptomServiceImpl;
|
|
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.vo.ConceptUsualVO;
|
|
import com.diagbot.vo.ConceptUsualVO;
|
|
@@ -18,7 +16,6 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 症状
|
|
* @Description: 症状
|
|
@@ -26,39 +23,28 @@ import java.util.Map;
|
|
* @Date: 2018/10/23 16:33
|
|
* @Date: 2018/10/23 16:33
|
|
*/
|
|
*/
|
|
@Component
|
|
@Component
|
|
-public class SymptomFacade extends SymptomServiceImpl{
|
|
|
|
|
|
+public class SymptomFacade {
|
|
@Autowired
|
|
@Autowired
|
|
AiptServiceClient aiptServiceClient;
|
|
AiptServiceClient aiptServiceClient;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 获取常用症状
|
|
|
|
|
|
+ * 获取常用症状
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<Symptom> getUsualFac(SymptomUsualVO symptomUsualVO) {
|
|
public List<Symptom> getUsualFac(SymptomUsualVO symptomUsualVO) {
|
|
ConceptUsualVO conceptUsualVO = new ConceptUsualVO();
|
|
ConceptUsualVO conceptUsualVO = new ConceptUsualVO();
|
|
- BeanUtil.copyProperties(symptomUsualVO,conceptUsualVO);
|
|
|
|
|
|
+ BeanUtil.copyProperties(symptomUsualVO, conceptUsualVO);
|
|
conceptUsualVO.setDeptName("全科");
|
|
conceptUsualVO.setDeptName("全科");
|
|
conceptUsualVO.setType(1);
|
|
conceptUsualVO.setType(1);
|
|
//从知识库获取常用标签
|
|
//从知识库获取常用标签
|
|
RespDTO<List<ConceptBaseDTO>> conceptBaseDTORespDTO = aiptServiceClient.getConceptUsual(conceptUsualVO);
|
|
RespDTO<List<ConceptBaseDTO>> conceptBaseDTORespDTO = aiptServiceClient.getConceptUsual(conceptUsualVO);
|
|
- RespDTOUtil.respNGDeal(conceptBaseDTORespDTO,"获取常用标签失败");
|
|
|
|
- List<Symptom> symptomList = BeanUtil.listCopyTo(conceptBaseDTORespDTO.data,Symptom.class);
|
|
|
|
|
|
+ RespDTOUtil.respNGDeal(conceptBaseDTORespDTO, "获取常用标签失败");
|
|
|
|
+ List<Symptom> symptomList = BeanUtil.listCopyTo(conceptBaseDTORespDTO.data, Symptom.class);
|
|
return symptomList;
|
|
return symptomList;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * 根据部位partIds获取症状信息
|
|
|
|
- *
|
|
|
|
- * @param map 参数
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public List<SymptomWrapper> getByPartIdsFac(Map map) {
|
|
|
|
- return this.getByPartIds(map);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 症状检索
|
|
* 症状检索
|
|
*
|
|
*
|
|
@@ -72,8 +58,8 @@ public class SymptomFacade extends SymptomServiceImpl{
|
|
retrievalVO.setInputStr(symptomSearchVO.getName());
|
|
retrievalVO.setInputStr(symptomSearchVO.getName());
|
|
retrievalVO.setAge(symptomSearchVO.getAge());
|
|
retrievalVO.setAge(symptomSearchVO.getAge());
|
|
retrievalVO.setSexType(symptomSearchVO.getSexType());
|
|
retrievalVO.setSexType(symptomSearchVO.getSexType());
|
|
- RespDTO<List<ConceptRetrievalDTO>> condeptRerievalS = aiptServiceClient.retrivelConceptInfo(retrievalVO);
|
|
|
|
- RespDTOUtil.respNGDeal(condeptRerievalS,"获取标签失败");
|
|
|
|
|
|
+ RespDTO<List<ConceptRetrievalDTO>> condeptRerievalS = aiptServiceClient.retrivelConceptInfo(retrievalVO);
|
|
|
|
+ RespDTOUtil.respNGDeal(condeptRerievalS, "获取标签失败");
|
|
List<Symptom> symptomList = new ArrayList<>();
|
|
List<Symptom> symptomList = new ArrayList<>();
|
|
Symptom symptom = new Symptom();
|
|
Symptom symptom = new Symptom();
|
|
//封装
|
|
//封装
|