fix:79084

This commit is contained in:
梁琦涛
2023-12-08 17:22:05 +08:00
parent 43d7f847a3
commit 47b82a64ef
@@ -887,6 +887,9 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
JSONObject object = jeroElasticsearchTemplate.buildBoolQuery(null,null,queryMapJson);
jsonObject.put("query",object);
}
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
JSONObject jsonObjectShould = getJsonObject(loginUser);
jsonObject.put("query",jsonObjectShould);
//2. 数据查询
JSONObject search = jeroElasticsearchTemplate.search(HomeSearchEnum.INDEX_NAME_DOCUMENT_ZQ.getValue(), HomeSearchEnum.TYPE_NAME_DOCUMENT_ZQ.getValue(), jsonObject);