|
@@ -3,6 +3,7 @@ package com.diagbot.facade;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.diagbot.client.CdssCoreClient;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
import com.diagbot.dto.GetAllForRelationDTO;
|
|
|
import com.diagbot.dto.KlConceptAllDTO;
|
|
@@ -71,6 +72,8 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
@Autowired
|
|
|
private UserServiceClient userServiceClient;
|
|
|
@Autowired
|
|
|
+ private CdssCoreClient cdssCoreClient;
|
|
|
+ @Autowired
|
|
|
private KlLibraryInfoFacade klLibraryInfoFacade;
|
|
|
@Autowired
|
|
|
private KlConceptCommonFacade klConceptCommonFacade;
|
|
@@ -453,7 +456,10 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<GetAllForRelationDTO> searchConceptByNameAndLibType(SearchConceptVO searchConceptVO) {
|
|
|
- List<GetAllForRelationDTO> getAllForRelationDTOS = Lists.newArrayList();
|
|
|
+ RespDTO<List<GetAllForRelationDTO>> relationDTORespDTO = cdssCoreClient.searchConcept(searchConceptVO);
|
|
|
+ RespDTOUtil.respNGDeal(relationDTORespDTO, "查询术语失败");
|
|
|
+ return relationDTORespDTO.data;
|
|
|
+ /*List<GetAllForRelationDTO> getAllForRelationDTOS = Lists.newArrayList();
|
|
|
String name = searchConceptVO.getName();
|
|
|
Integer libType = searchConceptVO.getLibType();
|
|
|
List<Long> excludedConceptIds = searchConceptVO.getExcludedConceptIds();
|
|
@@ -475,7 +481,7 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
}
|
|
|
- return getAllForRelationDTOS;
|
|
|
+ return getAllForRelationDTOS;*/
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -485,7 +491,12 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<GetAllForRelationDTO> searchConceptByNameAndLibType(SearchVO SearchVO) {
|
|
|
- List<GetAllForRelationDTO> getAllForRelationDTOS = Lists.newArrayList();
|
|
|
+ SearchConceptVO searchConceptVO = new SearchConceptVO();
|
|
|
+ BeanUtil.copyProperties(SearchVO,searchConceptVO);
|
|
|
+ RespDTO<List<GetAllForRelationDTO>> relationDTORespDTO = cdssCoreClient.searchConcept(searchConceptVO);
|
|
|
+ RespDTOUtil.respNGDeal(relationDTORespDTO, "查询术语失败");
|
|
|
+ return relationDTORespDTO.data;
|
|
|
+ /*List<GetAllForRelationDTO> getAllForRelationDTOS = Lists.newArrayList();
|
|
|
List<Long> excludedConceptIds = SearchVO.getExcludedConceptIds();
|
|
|
List<KlConcept> conceptList = this.list(new QueryWrapper<KlConcept>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
@@ -503,7 +514,7 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
return getAllForRelationDTO;
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
- return getAllForRelationDTOS;
|
|
|
+ return getAllForRelationDTOS;*/
|
|
|
}
|
|
|
|
|
|
/**
|