|
@@ -144,7 +144,7 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
" ,content_title\n" +
|
|
" ,content_title\n" +
|
|
|
" ,type\n" +
|
|
" ,type\n" +
|
|
|
" ,type_desc\n" +
|
|
" ,type_desc\n" +
|
|
|
- "FROM loghubods.content_deconstruction_result_structuring" +
|
|
|
|
|
|
|
+ "FROM loghubods.content_deconstruction_result_structuring\n" +
|
|
|
"WHERE dt = (\n" +
|
|
"WHERE dt = (\n" +
|
|
|
" SELECT MAX(dt)\n" +
|
|
" SELECT MAX(dt)\n" +
|
|
|
" FROM loghubods.content_deconstruction_result_structuring\n" +
|
|
" FROM loghubods.content_deconstruction_result_structuring\n" +
|
|
@@ -157,7 +157,8 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
" FROM loghubods.content_deconstruction_result_structuring\n" +
|
|
" FROM loghubods.content_deconstruction_result_structuring\n" +
|
|
|
" ) \n" +
|
|
" ) \n" +
|
|
|
" ) \n" +
|
|
" ) \n" +
|
|
|
- "AND type_desc LIKE CONCAT('%%', '%s','%%');";
|
|
|
|
|
|
|
+ "AND type_desc LIKE CONCAT('%%','%s','%%')\n" +
|
|
|
|
|
+ ";";
|
|
|
|
|
|
|
|
Map<String, List<ContentDescontructionResultVo>> result = new HashMap<>(queryDTO.getKeywords().size());
|
|
Map<String, List<ContentDescontructionResultVo>> result = new HashMap<>(queryDTO.getKeywords().size());
|
|
|
for (String keyword : queryDTO.getKeywords()) {
|
|
for (String keyword : queryDTO.getKeywords()) {
|
|
@@ -168,7 +169,6 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String contentTitle = records.get(0).getString("content_title");
|
|
|
|
|
Map<String, List<Record>> contentIdAndRecordMap = records.stream()
|
|
Map<String, List<Record>> contentIdAndRecordMap = records.stream()
|
|
|
.collect(Collectors.groupingBy(i -> i.getString("content_id")));
|
|
.collect(Collectors.groupingBy(i -> i.getString("content_id")));
|
|
|
|
|
|
|
@@ -187,6 +187,7 @@ public class ContentProfileServiceImpl implements ContentProfileService {
|
|
|
descriptionInfo.setTypeDesc(i.getString("type_desc"));
|
|
descriptionInfo.setTypeDesc(i.getString("type_desc"));
|
|
|
return descriptionInfo;
|
|
return descriptionInfo;
|
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
|
|
+ String contentTitle = contentRecord.get(0).getString("content_title");
|
|
|
|
|
|
|
|
ContentDescontructionResultVo contentDescontructionResultVo = new ContentDescontructionResultVo();
|
|
ContentDescontructionResultVo contentDescontructionResultVo = new ContentDescontructionResultVo();
|
|
|
contentDescontructionResultVo.setContentId(contentId);
|
|
contentDescontructionResultVo.setContentId(contentId);
|