|
@@ -223,6 +223,9 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
conceptExistVO.setLibType(libType);
|
|
|
}
|
|
|
|
|
|
+ if (configuer.cryptFlag){
|
|
|
+ CryptUtil.encryptList(conceptExistVO.getNameList());
|
|
|
+ }
|
|
|
//获取结构
|
|
|
List<Concept> concepts
|
|
|
= this.getListByNamesAndType(conceptExistVO.getNameList(), conceptExistVO.getLibType());
|
|
@@ -230,7 +233,11 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
|
//出参封装
|
|
|
Map<String, Long> map = new HashMap<>();
|
|
|
if (ListUtil.isNotEmpty(concepts)) {
|
|
|
- map = concepts.stream().collect(Collectors.toMap(r -> r.getLibName(), r -> r.getId()));
|
|
|
+ map = concepts
|
|
|
+ .stream()
|
|
|
+ .collect(Collectors.toMap(
|
|
|
+ r -> configuer.cryptFlag ? CryptUtil.decrypt_char(r.getLibName()) : r.getLibName(),
|
|
|
+ r -> r.getId()));
|
|
|
}
|
|
|
return map;
|
|
|
}
|