|
|
@ -215,7 +215,7 @@ public class QueryCenterService { |
|
|
|
JSONObject indexAndCount = new JSONObject(); |
|
|
|
indexAndCount.put("dc_bank_statement",bsCount); |
|
|
|
|
|
|
|
JSONObject queryInfo = getQueryInfo(initQueryIndex(0)); |
|
|
|
JSONObject queryInfo = getQueryInfo(initQueryIndex(query.getIsOther())); |
|
|
|
List<String> indexList = queryInfo.getBeanList("indexArr", String.class); |
|
|
|
String[] indexArr = ArrayUtil.toArray(indexList, String.class); |
|
|
|
SearchRequest searchRequest = new SearchRequest(indexArr); // 设置要查询的索引 |
|
|
@ -595,7 +595,7 @@ public class QueryCenterService { |
|
|
|
deleteRequest.setRefresh(true); |
|
|
|
BulkByScrollResponse response = restHighLevelClient.deleteByQuery(deleteRequest, RequestOptions.DEFAULT); |
|
|
|
long deletedCount = response.getDeleted(); |
|
|
|
if(!indexName.equals("dc_plate_number")){ |
|
|
|
if(!indexName.equals("dc_plate_number") || !indexName.equals("dc_collection_information")){ |
|
|
|
this.deleteMysqlData(indexName,query.getCaseId()); |
|
|
|
} |
|
|
|
|
|
|
|