|
@@ -14,6 +14,7 @@ import com.diagbot.vo.ScaleIndexVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -36,6 +37,9 @@ public class SearchFacade {
|
|
GetStaticKnowledgeVO getStaticKnowledgeVO = new GetStaticKnowledgeVO();
|
|
GetStaticKnowledgeVO getStaticKnowledgeVO = new GetStaticKnowledgeVO();
|
|
BeanUtil.copyProperties(getStaticVO, getStaticKnowledgeVO);
|
|
BeanUtil.copyProperties(getStaticVO, getStaticKnowledgeVO);
|
|
List<Integer> types = getStaticKnowledgeVO.getTypes();
|
|
List<Integer> types = getStaticKnowledgeVO.getTypes();
|
|
|
|
+ if (null == types) {
|
|
|
|
+ types = new ArrayList<>();
|
|
|
|
+ }
|
|
if (ListUtil.isEmpty(types)) {
|
|
if (ListUtil.isEmpty(types)) {
|
|
// 添加词库搜索类型
|
|
// 添加词库搜索类型
|
|
types.add(StaticSearchTypeEnum.DIAGNOSIS.getKey());
|
|
types.add(StaticSearchTypeEnum.DIAGNOSIS.getKey());
|
|
@@ -44,6 +48,7 @@ public class SearchFacade {
|
|
types.add(StaticSearchTypeEnum.LIS_PACKAGE.getKey());
|
|
types.add(StaticSearchTypeEnum.LIS_PACKAGE.getKey());
|
|
types.add(StaticSearchTypeEnum.PACS_ITEMS.getKey());
|
|
types.add(StaticSearchTypeEnum.PACS_ITEMS.getKey());
|
|
types.add(StaticSearchTypeEnum.OPERATION.getKey());
|
|
types.add(StaticSearchTypeEnum.OPERATION.getKey());
|
|
|
|
+ getStaticKnowledgeVO.setTypes(types);
|
|
}
|
|
}
|
|
RespDTO<List<RetrievalDTO>> res
|
|
RespDTO<List<RetrievalDTO>> res
|
|
= aiptServiceClient.getStaticKnowledge(getStaticKnowledgeVO);
|
|
= aiptServiceClient.getStaticKnowledge(getStaticKnowledgeVO);
|