提交 ce3aadbb 编写于 作者: Tyl666's avatar Tyl666

【Liquibase逆向工程】第三版 去掉无用信息

上级 06a8e8cc
...@@ -172,13 +172,12 @@ public class DstDataSourceExService extends DstDataSourceServiceImpl { ...@@ -172,13 +172,12 @@ public class DstDataSourceExService extends DstDataSourceServiceImpl {
throw new BadRequestAlertException("数据源默认数据库不能为空","","ibzInit"); throw new BadRequestAlertException("数据源默认数据库不能为空","","ibzInit");
} }
LiquibaseProp lp = new LiquibaseProp(); LiquibaseProp lp = new LiquibaseProp();
lp.setUsername(datasourceMap.get("username") == null?"":datasourceMap.get("username").toString()); lp.setUsername(datasourceMap.get("username").toString());
lp.setPassword(datasourceMap.get("password") == null?"":datasourceMap.get("password").toString()); lp.setPassword(datasourceMap.get("password").toString());
lp.setUrl(datasourceMap.get("url") == null?"":datasourceMap.get("url").toString()); lp.setUrl(datasourceMap.get("url").toString());
lp.setDefaultSchema(datasourceMap.get("defaultSchema") == null?"":datasourceMap.get("defaultSchema").toString()); lp.setDefaultSchema(datasourceMap.get("defaultSchema").toString());
// 调用liquibase逆向工程的逻辑,生成一个xml,并返回一个SysModel对象 // 调用liquibase逆向工程的逻辑,生成一个xml,并返回一个SysModel对象
SysModel sysModel = dstLiquibaseService.generateLiquibase(lp,ds.getDsId()); SysModel sysModel = dstLiquibaseService.generateLiquibase(lp,ds.getDsId());
liteCoreService.syncSysModel(sysModel); liteCoreService.syncSysModel(sysModel);
return et; return et;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册