Commit 1cb1bca1 authored by tianbo's avatar tianbo

fix:客运索道关键位置单位列表错误修复

parent 203b23a7
......@@ -634,7 +634,7 @@ public class YJDPStatisticsServiceImpl {
SearchSourceBuilder builder = new SearchSourceBuilder();
builder.query(boolMust);
request.source(builder);
List<JSONObject> list;
List<JSONObject> list = null;
Set<String> useUnitCreditCodeSet = Sets.newHashSet();
try {
SearchResponse response = restHighLevelClient.search(request, RequestOptions.DEFAULT);
......@@ -643,7 +643,9 @@ public class YJDPStatisticsServiceImpl {
JSONObject source = jsonObject.getJSONObject("sourceAsMap");
useUnitCreditCodeSet.add(source.getString("USE_UNIT_CREDIT_CODE"));
}
list = alertStatisticsMapper.getUseUnitByCreditCode(useUnitCreditCodeSet);
if (!ValidationUtil.isEmpty(useUnitCreditCodeSet)) {
list = alertStatisticsMapper.getUseUnitByCreditCode(useUnitCreditCodeSet);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
......
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