mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
修复:mp+升级导致test用例找不到对象爆红
○ import com.baomidou.mybatisplus.IDatabaseQuery.DefaultDatabaseQuery ● import com.baomidou.mybatisplus.generator.query.DefaultQuery;
This commit is contained in:
parent
bbb27df5e9
commit
09d6dcfa1f
@ -1,7 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.infra.service;
|
package cn.iocoder.yudao.module.infra.service;
|
||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.generator.IDatabaseQuery.DefaultDatabaseQuery;
|
import com.baomidou.mybatisplus.generator.query.DefaultQuery;
|
||||||
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
|
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
|
||||||
import com.baomidou.mybatisplus.generator.config.builder.ConfigBuilder;
|
import com.baomidou.mybatisplus.generator.config.builder.ConfigBuilder;
|
||||||
import com.baomidou.mybatisplus.generator.config.po.TableInfo;
|
import com.baomidou.mybatisplus.generator.config.po.TableInfo;
|
||||||
@ -19,7 +19,7 @@ public class DefaultDatabaseQueryTest {
|
|||||||
|
|
||||||
ConfigBuilder builder = new ConfigBuilder(null, dataSourceConfig, null, null, null, null);
|
ConfigBuilder builder = new ConfigBuilder(null, dataSourceConfig, null, null, null, null);
|
||||||
|
|
||||||
DefaultDatabaseQuery query = new DefaultDatabaseQuery(builder);
|
DefaultQuery query = new DefaultQuery(builder);
|
||||||
|
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
List<TableInfo> tableInfos = query.queryTables();
|
List<TableInfo> tableInfos = query.queryTables();
|
||||||
|
Loading…
Reference in New Issue
Block a user