|
@@ -235,7 +235,10 @@ public class MetadataClassificationServiceImpl
|
|
|
|
|
|
/**聚合层次**/
|
|
|
ArchiveTreeContract archiveTreeContractById = archiveTreeContractClient.getArchiveTreeContractById(Long.parseLong(byId.getNodeId()));
|
|
|
- List<ArchiveTreeContract> list = archiveTreeContractClient.getArchiveTreeContractListByIds(archiveTreeContractById.getAncestors());
|
|
|
+ String ancestors = archiveTreeContractById.getAncestors();
|
|
|
+ ancestors = ancestors.substring(ancestors.indexOf(","));
|
|
|
+ ancestors = ancestors + "," + archiveTreeContractById.getId();
|
|
|
+ List<ArchiveTreeContract> list = archiveTreeContractClient.getArchiveTreeContractListByIds(ancestors);
|
|
|
StringBuffer nameStr = new StringBuffer();
|
|
|
for (ArchiveTreeContract treeContract : list) {
|
|
|
nameStr.append(treeContract.getNodeName());
|
|
@@ -269,10 +272,10 @@ public class MetadataClassificationServiceImpl
|
|
|
keyValue.put("题名", byId.getFileName());
|
|
|
/**关键词**/
|
|
|
String keyWords = "";
|
|
|
- if (byId.getFileName().length() < 8) {
|
|
|
+ if (byId.getFileName().length() < 9) {
|
|
|
keyWords = byId.getFileName();
|
|
|
} else {
|
|
|
- keyWords = byId.getFileName().substring(0, 7);
|
|
|
+ keyWords = byId.getFileName().substring(0, 8);
|
|
|
}
|
|
|
keyValue.put("关键词", keyWords);
|
|
|
/**摘要**/
|