Commit 524400d6 by 朱海

[chg]增加支持多个direction搜索

1 parent 1c4ec01c
......@@ -498,6 +498,10 @@ public class PersonService {
if (StringUtils.isNotBlank(person.getCompareDirection())) {
queries.add(QueryBuilders.term().field("direction").value(FieldValue.of(person.getCompareDirection())).build()._toQuery());
}
List<Integer> compareDirectionIn = person.getCompareDirectionIn();
if (CollectionUtils.isNotEmpty(compareDirectionIn)) {
queries.add(QueryBuilders.terms().field("direction").terms(new TermsQueryField.Builder().value(compareDirectionIn.stream().map(FieldValue::of).collect(Collectors.toList())).build()).build()._toQuery());
}
Date counttimeGTE = person.getCounttimeGTE();
Date counttimeLTE = person.getCounttimeLTE();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!