소스 검색

修改EmptyWrapper

Caratacus 6 년 전
부모
커밋
06c684475f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/query/EmptyWrapper.java

+ 1 - 1
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/query/EmptyWrapper.java

@@ -61,7 +61,7 @@ public class EmptyWrapper<T> extends QueryWrapper<T> implements Serializable {
     }
 
     public EmptyWrapper<T> setEntity(T entity) {
-        throw new UnsupportedOperationException();
+        return this;
     }
 
     protected void initEntityClass() {