Browse Source

Condition添加获取EntitiyWrapper静态方法

Caratacus 7 years ago
parent
commit
5d885fb1dc

+ 2 - 2
mybatis-plus-support/src/main/java/com/baomidou/mybatisplus/mapper/Condition.java

@@ -83,8 +83,8 @@ public class Condition extends Wrapper {
      * @param <T>
      * @return
      */
-    public static <T> Wrapper<T> wrapper() {
-        return (Wrapper<T>) new EntityWrapper<>();
+    public static <T> EntityWrapper<T> wrapper() {
+        return new EntityWrapper<>();
     }
 
 }