zhanghua
2025-04-14 1cad14bca191807e18705c3a5526eda8151be439
ycl-generator/src/main/java/com/ycl/MysqlGenerator.java
@@ -11,7 +11,7 @@
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;
@@ -58,8 +58,8 @@
        // 全局配置
        GlobalConfig gc = new GlobalConfig();
        final String projectPath = System.getProperty("user.dir");
        gc.setOutputDir(projectPath + "/ycl-generator/src/main/java");
        gc.setAuthor("zhanghua");//作者
        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);
@@ -116,7 +116,7 @@
                // 自定义输出文件名 , 如果你 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;
            }
        });