|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.client.ICSSManServiceClient;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
+import com.diagbot.config.CryptConfiguer;
|
|
|
import com.diagbot.dto.BIItemDTO;
|
|
|
import com.diagbot.dto.ConceptBaseDTO;
|
|
|
import com.diagbot.dto.ConceptRes;
|
|
@@ -123,6 +124,8 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
private ICSSManServiceClient icssManServiceClient;
|
|
|
@Autowired
|
|
|
private ScaleContentFacade scaleContentFacade;
|
|
|
+ @Autowired
|
|
|
+ private CryptConfiguer cryptConfiguer;
|
|
|
|
|
|
/**
|
|
|
* 获取所有化验公表项
|
|
@@ -131,7 +134,7 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<GetAllLisConceptDTO> getAllLisConcept(GetAllLisConceptVO getAllLisConceptVO) {
|
|
|
- List<GetAllLisConceptDTO> getAllLisConceptDTOList = new ArrayList<>();
|
|
|
+ List<GetAllLisConceptDTO> getAllLisConceptDTOList = Lists.newArrayList();
|
|
|
|
|
|
QueryWrapper<Concept> conceptQe = new QueryWrapper<>();
|
|
|
conceptQe.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
@@ -143,10 +146,7 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
+ "'),'%')");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- List<Concept> conceptList = list(conceptQe);
|
|
|
-
|
|
|
- conceptList.forEach(i -> {
|
|
|
+ list(conceptQe).forEach(i -> {
|
|
|
if (getAllLisConceptVO.getExcludedConceptNames() != null
|
|
|
&& getAllLisConceptVO.getExcludedConceptNames().contains(i.getLibName())) {
|
|
|
return;
|
|
@@ -157,7 +157,6 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
getAllLisConceptDTOList.add(getAllLisConceptDTO);
|
|
|
});
|
|
|
|
|
|
- //return this.baseMapper.getAllLisConcept(getAllLisConceptVO);
|
|
|
return getAllLisConceptDTOList;
|
|
|
}
|
|
|
|
|
@@ -204,21 +203,6 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
libraryInfoList = libraryInfoList.stream()
|
|
|
.filter(i -> i.getIsDeleted().equals(IsDeleteEnum.N.getKey())).collect(Collectors.toList());
|
|
|
}
|
|
|
-
|
|
|
- /*//添加过术语医学属性的过滤掉
|
|
|
- if (getAllConceptVO.getIsMedical() != null && getAllConceptVO.getIsMedical() == 1) {
|
|
|
- QueryWrapper<Medical> medicalQe = new QueryWrapper<>();
|
|
|
- medicalQe.eq("is_deleted", "N");
|
|
|
- medicalQe.in("concept_id", libraryInfoList.stream().map(i -> i.getConceptId()).collect(Collectors.toList()));
|
|
|
- Map<Long, Medical> medicalMap = medicalFacade.list(medicalQe).stream().collect(Collectors.toMap(Medical::getConceptId, i -> i));
|
|
|
- libraryInfoList = libraryInfoList.stream().filter(i -> {
|
|
|
- if (medicalMap.get(i.getConceptId()) == null) {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- }).collect(Collectors.toList());
|
|
|
- }*/
|
|
|
|
|
|
getAllConceptDTOList = BeanUtil.listCopyTo(libraryInfoList, GetAllConceptDTO.class);
|
|
|
getAllConceptDTOList.forEach(i -> {
|
|
@@ -242,12 +226,10 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
|| getAllForRelationVO.getTypeId() != null) {
|
|
|
QueryWrapper<Concept> conceptQe = new QueryWrapper<>();
|
|
|
conceptQe.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
- if (StringUtil.isNotBlank(getAllForRelationVO.getName())) {
|
|
|
- conceptQe.apply(
|
|
|
- "UPPER(lib_name) LIKE CONCAT('%',trim('"
|
|
|
- + getAllForRelationVO.getName().toUpperCase()
|
|
|
- + "'),'%')");
|
|
|
- }
|
|
|
+ conceptQe.apply(StringUtil.isNotBlank(getAllForRelationVO.getName()),
|
|
|
+ "UPPER(lib_name) LIKE CONCAT('%',trim('"
|
|
|
+ + getAllForRelationVO.getName().toUpperCase()
|
|
|
+ + "'),'%')");
|
|
|
conceptQe.eq(getAllForRelationVO.getTypeId() != null,
|
|
|
"lib_type", getAllForRelationVO.getTypeId());
|
|
|
List<Concept> conceptList = list(conceptQe);
|