|
@@ -223,8 +223,14 @@ public class AdmQueryCriteriaHelper {
|
|
|
node.add(getJsonNode(criteria, split.trim()));
|
|
|
}
|
|
|
} else if("isnull".equals(operator)) {
|
|
|
+ boolean ifNot = true;
|
|
|
+ if(column.indexOf("not") >= 0){
|
|
|
+ ifNot = false;
|
|
|
+ column = column.split(" ")[1];
|
|
|
+ }
|
|
|
ObjectNode node = criteria.putObject(column);
|
|
|
- node.put("$null", true);
|
|
|
+ node.put("$null", ifNot);
|
|
|
+
|
|
|
} else {
|
|
|
ObjectNode node = criteria.putObject(column);
|
|
|
node.set(OPERATOR_MAP.get(operator), getJsonNode(node, value));
|