| | |
| | | import com.baomidou.mybatisplus.generator.config.po.TableInfo; |
| | | import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; |
| | | import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine; |
| | | import com.ycl.base.BaseController; |
| | | import com.ycl.controller.BaseController; |
| | | |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | // 全局配置 |
| | | GlobalConfig gc = new GlobalConfig(); |
| | | final String projectPath = System.getProperty("user.dir"); |
| | | gc.setOutputDir(projectPath + "/ycl-generator/src/main/java"); |
| | | gc.setAuthor("wl");//作者 |
| | | gc.setOutputDir(projectPath + "/ycl-smoke/src/main/java"); |
| | | gc.setAuthor("lyq");//作者 |
| | | gc.setBaseResultMap(true); //mapper.xml 生成 ResultMap |
| | | gc.setBaseColumnList(true); //mapper.xml 生成 ColumnList |
| | | // gc.setSwagger2(true); |
| | |
| | | // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着发生变化!! |
| | | // return projectPath + "/coinyee-contract-generator/src/main/resources/mapper/" + pc.getModuleName() |
| | | // + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML; |
| | | return projectPath + "/ycl-generator/src/main/resources/mapper/" |
| | | return projectPath + "/ycl-smoke/src/main/resources/mapper/" |
| | | + packageName + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML; |
| | | } |
| | | }); |