miemie 5 years ago
parent
commit
4c2015beb3

+ 4 - 0
mybatis-plus-core/src/test/java/com/baomidou/mybatisplus/test/WrapperTest.java

@@ -166,6 +166,10 @@ class WrapperTest {
         logSqlSegment("not exists", new QueryWrapper<User>()
                 .notExists("select"),
             "(NOT EXISTS (select))");
+
+        logSqlSegment("not", new QueryWrapper<User>()
+                .not(i -> i.eq("id", 1)),
+            "(NOT (id = ?))");
     }
 
     @Test