|
|
@@ -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"); |
|
|
|
} |
|
|
|
|
|
|
|
} |