Browse Source

add command IN and NOT_IN for a filter to the dashboard(fix error)

pull/5200/head
Ivan Panakhno 5 years ago
parent
commit
b95b821694
  1. 2
      dao/src/main/java/org/thingsboard/server/dao/sql/query/EntityKeyMapping.java

2
dao/src/main/java/org/thingsboard/server/dao/sql/query/EntityKeyMapping.java

@ -564,13 +564,11 @@ public class EntityKeyMapping {
case IN:
value = value.replaceAll("'","").replaceAll("\"", "");
values = List.of(value.trim().split("\\s*,\\s*"));
System.out.println(value);
stringOperationQuery = String.format("%s in (:%s))", operationField, paramName);
break;
case NOT_IN:
value = value.replaceAll("'","").replaceAll("\"", "");
values = List.of(value.trim().split("\\s*,\\s*"));
System.out.println(value);
stringOperationQuery = String.format("%s not in (:%s))", operationField, paramName);
}
switch (stringFilterPredicate.getOperation()) {

Loading…
Cancel
Save