瀏覽代碼

EntityWrapper == null 测试

青苗 9 年之前
父節點
當前提交
e889f21f57
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/mysql/UserMapperTest.java

+ 4 - 3
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/mysql/UserMapperTest.java

@@ -262,9 +262,10 @@ public class UserMapperTest {
 		/*
 		 * 用户列表
 		 */
-		paginList = userMapper.selectList(new EntityWrapper<User>());
-		for (int i = 0; i < rowList.size(); i++) {
-			print(rowList.get(i));
+		System.err.println(" selectList EntityWrapper == null \n");
+		paginList = userMapper.selectList(null);
+		for (int i = 0; i < paginList.size(); i++) {
+			print(paginList.get(i));
 		}
 
 		/**