소스 검색

init

master
Lierbao 1 년 전
부모
커밋
5304d865cb
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. +8
    -8
      ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeConfig.java

+ 8
- 8
ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeConfig.java 파일 보기

@@ -8,14 +8,14 @@ import java.util.Collections;

/**
* @description: 自动生成code代码
* @author: liushuai
* @date: 2022/3/25 14:20
* @author: liuxinxin
* @date: 2023/01/03 09:20
*/
public class GeneratorCodeConfig {

private static final String PATH_LXX = "/Users/liuxinxin/IdeaProjects/car_rental/ningda-car-rental-api/src/main/java";
private static final String PATH_YYD = "/Users/wendy/code project/java/car_rental/ningda-car-rental-api/src/main/java";
private static final String PATH_LS = "/Users/qinxianyun/Documents/qin/ningdatech/car_rental/ningda-car-rental-api/src/main/java";
private static final String PATH_LXX = "";
private static final String PATH_YYD = "";
private static final String PATH_LS = "";
private static final String PATH_ZPF = "";
private static final String PATH_CMM = "";

@@ -41,11 +41,11 @@ public class GeneratorCodeConfig {
// 设置父包名
builder.parent("com.ningdatech")
// 设置父包模块名
.moduleName("rentalcar." + packageName)
.moduleName("pmapi." + packageName)
// 设置mapperXml生成路径
.pathInfo(Collections.singletonMap(OutputFile.mapperXml,
//设置自己的生成路径
path + "/com/ningdatech/rentalcar/" + packageName + "/mapper"));
path + "/com/ningdatech/pmapi/" + packageName + "/mapper"));
})
.strategyConfig(builder -> {
builder.addTablePrefix("nd");
@@ -58,7 +58,7 @@ public class GeneratorCodeConfig {
}

public static void main(String[] args) {
generate("Liuxinxin", "order", PATH_YYD, "nd_order_status_change");
generate("Liuxinxin", "null", PATH_LXX, "null");
}

}

불러오는 중...
취소
저장