浏览代码

修改EmptyWrapper

Caratacus 6 年之前
父节点
当前提交
06c684475f

+ 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) {
     public EmptyWrapper<T> setEntity(T entity) {
-        throw new UnsupportedOperationException();
+        return this;
     }
     }
 
 
     protected void initEntityClass() {
     protected void initEntityClass() {