|
@@ -1296,7 +1296,10 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
//出参封装
|
|
//出参封装
|
|
Map<Long, String> map = new HashMap<>();
|
|
Map<Long, String> map = new HashMap<>();
|
|
if (ListUtil.isNotEmpty(concepts)) {
|
|
if (ListUtil.isNotEmpty(concepts)) {
|
|
- map = concepts.stream().collect(Collectors.toMap(r -> r.getId(), r -> r.getLibName()));
|
|
|
|
|
|
+ map = concepts
|
|
|
|
+ .stream()
|
|
|
|
+ .collect(Collectors.toMap(r -> r.getId(),
|
|
|
|
+ r -> cryptConfiguer.cryptFlag ? CryptUtil.decrypt_char(r.getLibName()) : r.getLibName()));
|
|
}
|
|
}
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
@@ -1420,6 +1423,10 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
conceptExistVO.setLibType(libType);
|
|
conceptExistVO.setLibType(libType);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //加密
|
|
|
|
+ if (cryptConfiguer.cryptFlag) {
|
|
|
|
+ CryptUtil.encryptList(conceptExistVO.getNameList());
|
|
|
|
+ }
|
|
|
|
|
|
//获取结构
|
|
//获取结构
|
|
List<Concept> concepts
|
|
List<Concept> concepts
|
|
@@ -1436,6 +1443,10 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
typeList.add(type);
|
|
typeList.add(type);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //解密
|
|
|
|
+ if (cryptConfiguer.cryptFlag) {
|
|
|
|
+ key = CryptUtil.decrypt_char(key);
|
|
|
|
+ }
|
|
typeMap.put(key, typeList);
|
|
typeMap.put(key, typeList);
|
|
}
|
|
}
|
|
}
|
|
}
|