|
@@ -62,6 +62,10 @@ public class Condition implements ISqlSegment {
|
|
|
return this.addNestedCondition(condition, IN);
|
|
|
}
|
|
|
|
|
|
+ public Condition notIn(String condition) {
|
|
|
+ return this.not().addNestedCondition(condition, IN);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* LIKE '%值%'
|
|
|
*/
|
|
@@ -169,14 +173,6 @@ public class Condition implements ISqlSegment {
|
|
|
return this.addCondition(condition, ORDER_BY);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * NOT 关键词
|
|
|
- */
|
|
|
- public Condition not() {
|
|
|
- expression.add(NOT);
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* HAVING 关键词
|
|
|
*/
|
|
@@ -212,6 +208,14 @@ public class Condition implements ISqlSegment {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * NOT 关键词
|
|
|
+ */
|
|
|
+ protected Condition not() {
|
|
|
+ expression.add(NOT);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 普通查询条件
|