miemie 5 anni fa
parent
commit
469137a581

+ 45 - 15
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/conditions/AbstractChainWrapper.java

@@ -58,21 +58,6 @@ public abstract class AbstractChainWrapper<T, R, Children extends AbstractChainW
         return (AbstractWrapper) wrapperChildren;
     }
 
-    @Override
-    public T getEntity() {
-        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getEntity");
-    }
-
-    @Override
-    public MergeSegments getExpression() {
-        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getExpression");
-    }
-
-    @Override
-    public String getCustomSqlSegment() {
-        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getCustomSqlSegment");
-    }
-
     @Override
     public <V> Children allEq(boolean condition, Map<R, V> params, boolean null2IsNull) {
         getWrapper().allEq(condition, params, null2IsNull);
@@ -281,4 +266,49 @@ public abstract class AbstractChainWrapper<T, R, Children extends AbstractChainW
     public String getSqlSegment() {
         throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getSqlSegment");
     }
+
+    @Override
+    public String getSqlFirst() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getSqlFirst");
+    }
+
+    @Override
+    public String getSqlSelect() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getSqlSelect");
+    }
+
+    @Override
+    public String getSqlSet() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getSqlSet");
+    }
+
+    @Override
+    public String getSqlComment() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getSqlComment");
+    }
+
+    @Override
+    public String getTargetSql() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getTargetSql");
+    }
+
+    @Override
+    public T getEntity() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getEntity");
+    }
+
+    @Override
+    public MergeSegments getExpression() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getExpression");
+    }
+
+    @Override
+    public String getCustomSqlSegment() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "getCustomSqlSegment");
+    }
+
+    @Override
+    public void clear() {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "clear");
+    }
 }