Commit 4158efcf authored by tianbo's avatar tianbo

逆向工程生成代码项目结构调整

parent 49d3b76b
...@@ -26,18 +26,18 @@ public class MyBatisPlusCodeGenerator { ...@@ -26,18 +26,18 @@ public class MyBatisPlusCodeGenerator {
/** /**
* 项目名称缩写 * 项目名称缩写
*/ */
static String projectShortName = "tzs"; static String projectShortName = "ugp";
/** /**
* 项目api目录 * 项目api目录
*/ */
static String apiAddress = "/amos-boot-module/amos-boot-module-api/" + "amos-boot-module-" + projectShortName + static String apiAddress = "/amos-boot-system-" + projectShortName + "/amos-boot-module-" + projectShortName +
"-api/"; "-api/";
/** /**
* 项目biz目录 * 项目biz目录
*/ */
static String bizAddress = "/amos-boot-module/amos-boot-module-biz/" + "amos-boot-module-" + projectShortName + static String bizAddress = "/amos-boot-system-" + projectShortName + "/amos-boot-module-" + projectShortName +
"-biz/"; "-biz/";
/** /**
...@@ -102,12 +102,12 @@ public class MyBatisPlusCodeGenerator { ...@@ -102,12 +102,12 @@ public class MyBatisPlusCodeGenerator {
gc.setActiveRecord(false); gc.setActiveRecord(false);
// 数据源配置 // 数据源配置
DataSourceConfig dsc = new DataSourceConfig(); DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://172.16.6.60:3306/amos-tzs-biz?serverTimezone=GMT%2B8"); dsc.setUrl("jdbc:mysql://39.98.45.134:3306/tzs_amos_ugp_biz?serverTimezone=GMT%2B8");
// dsc.setSchemaName("public"); // dsc.setSchemaName("public");
// dsc.setDriverName("com.mysql.jdbc.Driver"); // dsc.setDriverName("com.mysql.jdbc.Driver");
dsc.setDriverName("com.mysql.cj.jdbc.Driver"); dsc.setDriverName("com.mysql.cj.jdbc.Driver");
dsc.setUsername("root"); dsc.setUsername("root");
dsc.setPassword("root_123"); dsc.setPassword("Yeejoin@2020");
dsc.setTypeConvert(new ITypeConvert() { dsc.setTypeConvert(new ITypeConvert() {
@Override @Override
...@@ -292,7 +292,8 @@ public class MyBatisPlusCodeGenerator { ...@@ -292,7 +292,8 @@ public class MyBatisPlusCodeGenerator {
strategy.setControllerMappingHyphenStyle(true); strategy.setControllerMappingHyphenStyle(true);
strategy.setTablePrefix(); strategy.setTablePrefix();
//去除表名前缀 //去除表名前缀
strategy.setTablePrefix("t_", "tb_", "sys_", "other_", "rpm_", "s_", "tcb_", "cb_", "tz_", "jc_", "jcb_"); strategy.setTablePrefix("tz_" + projectShortName + "_", "t_", "tb_", "sys_", "other_", "rpm_", "s_", "tcb_",
"cb_", "tz_", "jc_", "jcb_", "flc_");
// 设置父级Controller // 设置父级Controller
strategy.setSuperControllerClass("com.yeejoin.amos.boot.biz.common.controller.BaseController"); strategy.setSuperControllerClass("com.yeejoin.amos.boot.biz.common.controller.BaseController");
autoGenerator.setStrategy(strategy); autoGenerator.setStrategy(strategy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment