miemie 6 年之前
父节点
当前提交
aa8cd58686

+ 5 - 0
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/mysql/MysqlTestDataMapperTest.java

@@ -227,4 +227,9 @@ public class MysqlTestDataMapperTest {
         Assert.assertTrue(CollectionUtils.isNotEmpty(mysqlMapper.selectList(new QueryWrapper<MysqlData>()
             .apply("`order` = 12"))));
     }
+
+    @Test
+    public void d9_testSetSelect() {
+        commonMapper.selectList(new QueryWrapper<>(new CommonData()).select(i -> i.getProperty().startsWith("test")));
+    }
 }