Commit 2e104d2d by naan1993

生成器配置完善

parent ee8491bd
...@@ -13,7 +13,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig { ...@@ -13,7 +13,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override @Override
protected void globalConfig() { protected void globalConfig() {
globalConfig.setOutputDir("/Users/stylefeng/work/ideaSpace/guns/guns-admin/src/main/java"); globalConfig.setOutputDir("D:\\ideaSpace\\guns\\guns-admin\\src\\main\\java");
globalConfig.setFileOverride(true); globalConfig.setFileOverride(true);
globalConfig.setEnableCache(false); globalConfig.setEnableCache(false);
globalConfig.setBaseResultMap(true); globalConfig.setBaseResultMap(true);
...@@ -34,7 +34,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig { ...@@ -34,7 +34,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override @Override
protected void strategyConfig() { protected void strategyConfig() {
//strategy.setTablePrefix(new String[]{"_"});// 此处可以修改为您的表前缀 //strategy.setTablePrefix(new String[]{"_"});// 此处可以修改为您的表前缀
//strategyConfig.setInclude(new String[]{"bill"}); strategyConfig.setInclude(new String[]{"my_order"});
strategyConfig.setNaming(NamingStrategy.underline_to_camel); strategyConfig.setNaming(NamingStrategy.underline_to_camel);
} }
...@@ -49,17 +49,18 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig { ...@@ -49,17 +49,18 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override @Override
protected void contextConfig() { protected void contextConfig() {
contextConfig.setBizChName("记账管理"); contextConfig.setBizChName("记账管理");
contextConfig.setBizEnName("bill"); contextConfig.setBizEnName("order");
contextConfig.setModuleName("system"); contextConfig.setModuleName("system");
contextConfig.setProjectPath("/Users/stylefeng/work/ideaSpace/guns/guns-admin"); contextConfig.setProjectPath("D:\\ideaSpace\\guns\\guns-admin");
contextConfig.setEntityName("Bill"); contextConfig.setEntityName("MyOrder");
sqlConfig.setParentMenuName("系统管理");
/** /**
* mybatis-plus 生成器开关 * mybatis-plus 生成器开关
*/ */
contextConfig.setEntitySwitch(false); contextConfig.setEntitySwitch(true);
contextConfig.setDaoSwitch(false); contextConfig.setDaoSwitch(true);
contextConfig.setServiceSwitch(false); contextConfig.setServiceSwitch(true);
/** /**
* guns 生成器开关 * guns 生成器开关
...@@ -70,5 +71,6 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig { ...@@ -70,5 +71,6 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
contextConfig.setEditPageSwitch(true); contextConfig.setEditPageSwitch(true);
contextConfig.setJsSwitch(true); contextConfig.setJsSwitch(true);
contextConfig.setInfoJsSwitch(true); contextConfig.setInfoJsSwitch(true);
contextConfig.setSqlSwitch(true);
} }
} }
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