提交 e01cee38 作者: obcy

【研报库,已采集资讯查询】

上级 242c41aa
......@@ -711,6 +711,8 @@ public class EsService {
} else {
boolQuery.must(QueryBuilders.termQuery("sid", eventDataCondition.getSourceId()));
}
//
specialQuery(byId,eventDataCondition, boolQuery);
//高级查询数据处理
BoolQueryBuilder superQuery = buildSuperQuery(eventDataCondition.getSuperQueryMatchType(), eventDataCondition.getSuperQueryParams());
if (superQuery != null) {
......@@ -771,6 +773,13 @@ public class EsService {
return pageData;
}
private void specialQuery(Subject byId, InfoDataSearchCondition eventDataCondition, BoolQueryBuilder boolQuery) {
if (StrUtil.isNotBlank(byId.getEsIndex()) && "researchreportdata".equals(byId.getEsIndex()) && StrUtil.equals(byId.getId(),"1662011688013963265")){
//研报库数据,查询企业库的研报类型的数据
boolQuery.must(QueryBuilders.termQuery("type", "0"));
}
}
/**
* 事件对应专题库的资讯分页列表
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论