Parcourir la source

fix : 查询条件isnull兼容not 优化

lvxianyun il y a 3 ans
Parent
commit
e6732c1097

+ 1 - 2
src/main/java/com/persagy/proxy/adm/utils/AdmQueryCriteriaHelper.java

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