Commit 84f412f3 by 陈健智

原发追溯操作记录补充

parent 9644f351
......@@ -555,6 +555,7 @@ public class AppArticleController extends BaseController {
@ApiOperation("原发溯源-首发信息")
@PostMapping("/search-whole/origin/first-article")
@LogRecord(description = "原发溯源")
public ResponseResult getWholeSearchFirstArticle(@RequestBody MarkSearchDTO dto) {
return ResponseResult.success(markDataService.getWholeSearchFirstArticle(dto));
}
......
......@@ -3332,6 +3332,9 @@ public class MarkDataServiceImpl implements MarkDataService {
SearchResponse searchResponse = esClientDao.searchResponse(indexes, null, query, provinceAggregationBuilder, null, sort, 0, 1000, null);
// hits
SearchHits hits = searchResponse.getHits();
if (0 == hits.getHits().length){
return null;
}
JSONObject firstJson = new JSONObject(hits.getAt(0).getSourceAsMap());
Map<String, Integer> platformCount = new HashMap<>();
Map<String, Integer> fieldCount = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment