Commit 5a76e019 by yubaogu

tett

parent 57117fdc
...@@ -39,7 +39,7 @@ public class MyGenerator implements Serializable { ...@@ -39,7 +39,7 @@ public class MyGenerator implements Serializable {
public static final String DATABASE = "ydl"; public static final String DATABASE = "ydl";
// 类信息:类名、对象名(一般是【类名】的首字母小些)、类说明、时间 // 类信息:类名、对象名(一般是【类名】的首字母小些)、类说明、时间
public static final String TABLE = "doctor"; public static final String TABLE = "doctor";
public static final String[] TABLES = {"log_system" public static final String[] TABLES = {"region"
}; };
/** /**
"doctor_base_data","doctor_order","doctor","expert_interview","expert_interview_result","expert_result", "doctor_base_data","doctor_order","doctor","expert_interview","expert_interview_result","expert_result",
...@@ -63,7 +63,7 @@ public class MyGenerator implements Serializable { ...@@ -63,7 +63,7 @@ public class MyGenerator implements Serializable {
//是否是Swagger配置 //是否是Swagger配置
public static final String IS_SWAGGER = "true"; public static final String IS_SWAGGER = "true";
public static final String PROJECT_NAME = "log"; public static final String PROJECT_NAME = "doctor";
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
System.out.println(MyGenerator.class.getResource("").getPath()); System.out.println(MyGenerator.class.getResource("").getPath());
...@@ -83,7 +83,7 @@ public class MyGenerator implements Serializable { ...@@ -83,7 +83,7 @@ public class MyGenerator implements Serializable {
bi.setEntityComment(CLASSCOMMENT); bi.setEntityComment(CLASSCOMMENT);
try { try {
bi = EntityInfoUtil.getInfo(bi); bi = EntityInfoUtil.getInfo(bi);
String localproject = "D:\\ydlwork\\ydl_log\\"; String localproject = "D:\\ydlwork\\ydl-doctor\\";
String fileServiceUrl = localproject + "ydl-*project*-service\\src\\main\\"+ "java\\";// 生成文件存放位置 String fileServiceUrl = localproject + "ydl-*project*-service\\src\\main\\"+ "java\\";// 生成文件存放位置
String fileServiceMapper = localproject + "ydl-*project*-service\\src\\main\\" + "resources\\";// 生成文件存放位置 String fileServiceMapper = localproject + "ydl-*project*-service\\src\\main\\" + "resources\\";// 生成文件存放位置
String fileIntfUrl = localproject + "ydl-*project*-intf\\src\\main\\java\\";// 生成文件存放位置 String fileIntfUrl = localproject + "ydl-*project*-intf\\src\\main\\java\\";// 生成文件存放位置
...@@ -98,8 +98,8 @@ public class MyGenerator implements Serializable { ...@@ -98,8 +98,8 @@ public class MyGenerator implements Serializable {
String aa1 = Generator.createEntity(fileIntfUrl, bi).toString(); String aa1 = Generator.createEntity(fileIntfUrl, bi).toString();
String aa2 = Generator.createDao(fileServiceUrl, bi).toString(); String aa2 = Generator.createDao(fileServiceUrl, bi).toString();
String aa3 = Generator.createDaoImpl(fileServiceMapper, bi).toString(); String aa3 = Generator.createDaoImpl(fileServiceMapper, bi).toString();
String aa4 = Generator.createService(fileServiceUrl, bi).toString(); //String aa4 = Generator.createService(fileServiceUrl, bi).toString();
String aa5 = Generator.createServiceImpl(fileServiceUrl, bi).toString(); //String aa5 = Generator.createServiceImpl(fileServiceUrl, bi).toString();
//String aa6 = Generator.createController(fileApiUrl, bi).toString(); //String aa6 = Generator.createController(fileApiUrl, bi).toString();
// 是否创建swagger配置文件 // 是否创建swagger配置文件
//String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString(); //String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString();
...@@ -110,8 +110,8 @@ public class MyGenerator implements Serializable { ...@@ -110,8 +110,8 @@ public class MyGenerator implements Serializable {
System.out.println(aa1); System.out.println(aa1);
System.out.println(aa2); System.out.println(aa2);
System.out.println(aa3); System.out.println(aa3);
System.out.println(aa4); //System.out.println(aa4);
System.out.println(aa5); //System.out.println(aa5);
//System.out.println(aa6); //System.out.println(aa6);
//System.out.println(aa7); //System.out.println(aa7);
......
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