Commit 303dd809 authored by tianyiming's avatar tianyiming

过滤高级筛选无效筛选项

parent 80618b45
......@@ -730,7 +730,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
case "notLike":
NestedQueryBuilder notLikeQuery = QueryBuilders.nestedQuery(
path,
QueryBuilders.boolQuery().must(QueryBuilders.wildcardQuery(path+stringEnd, "*" + value + "*")),
QueryBuilders.boolQuery().must(QueryBuilders.wildcardQuery(path + stringEnd, "*" + value + "*")),
ScoreMode.Avg
);
if (isCustom) {
......@@ -901,12 +901,14 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
// 如果只有技术参数或者只有参数范围,则舍弃对应的分组
group.forEach(item -> {
JSONObject itemObj = JSONObject.parseObject(JSONObject.toJSONString(item));
if (itemObj.getString("field").equals("techParam")) {
techParam.putAll(itemObj);
} else if (itemObj.getString("field").equals("paramRange")) {
paramRange.putAll(itemObj);
} else {
resultGroup.add(itemObj);
if (itemObj.containsKey("field") && itemObj.containsKey("value")) {
if (itemObj.getString("field").equals("techParam")) {
techParam.putAll(itemObj);
} else if (itemObj.getString("field").equals("paramRange")) {
paramRange.putAll(itemObj);
} else {
resultGroup.add(itemObj);
}
}
});
}
......
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