Commit 21c47042 by yubaogu

tett

parent b90861ea
...@@ -110,9 +110,9 @@ public class Generator { ...@@ -110,9 +110,9 @@ public class Generator {
}else if(type.equals("mapperxml")) { }else if(type.equals("mapperxml")) {
return url+pageToUrl(packageUrl)+entityName+"Mapper.xml"; return url+pageToUrl(packageUrl)+entityName+"Mapper.xml";
}else if(type.equals("service")) { }else if(type.equals("service")) {
return url+pageToUrl(packageUrl)+entityName+"Service.java"; return url+pageToUrl(packageUrl)+entityName+"Biz.java";
}else if(type.equals("serviceImpl")) { }else if(type.equals("serviceImpl")) {
return url+pageToUrl(packageUrl)+entityName+"ServiceImpl.java"; return url+pageToUrl(packageUrl)+entityName+"BizImpl.java";
}else if(type.equals("facade")) { }else if(type.equals("facade")) {
return url+pageToUrl(packageUrl)+entityName+"Facade.java"; return url+pageToUrl(packageUrl)+entityName+"Facade.java";
}else if(type.equals("facadeImpl")) { }else if(type.equals("facadeImpl")) {
......
/** /**
* @filename:${entityName}Service ${createTime} * @filename:${entityName}Biz ${createTime}
* @project ${project} ${version} * @project ${project} ${version}
* Copyright(c) 2020 ${author} Co. Ltd. * Copyright(c) 2020 ${author} Co. Ltd.
* All right reserved. * All right reserved.
...@@ -15,6 +15,6 @@ import ${entityUrl}.${entityName}; ...@@ -15,6 +15,6 @@ import ${entityUrl}.${entityName};
* @author: ${author} * @author: ${author}
* *
*/ */
public interface ${entityName}Service extends IService<${entityName}> { public interface ${entityName}Biz extends IService<${entityName}> {
} }
\ No newline at end of file
...@@ -21,6 +21,6 @@ import com.github.pagehelper.PageHelper; ...@@ -21,6 +21,6 @@ import com.github.pagehelper.PageHelper;
* *
*/ */
@Service @Service
public class ${entityName}ServiceImpl extends BaseService<${entityName}> implements ${entityName}Service { public class ${entityName}BizImpl extends BaseService<${entityName}> implements ${entityName}Service {
} }
\ No newline at end of file
...@@ -52,18 +52,18 @@ public class MyGenerator implements Serializable { ...@@ -52,18 +52,18 @@ public class MyGenerator implements Serializable {
public static final String TIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); public static final String TIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
public static final String AGILE = new Date().getTime() + ""; public static final String AGILE = new Date().getTime() + "";
// 路径信息,分开路径方便聚合工程项目,微服务项目 // 路径信息,分开路径方便聚合工程项目,微服务项目
public static String ENTITY_URL = "com.ydl.*project*.po"; public static String ENTITY_URL = "com.ydl.*project*.intf.po";
public static String DAO_URL = "com.ydl.*project*.mapper"; public static String DAO_URL = "com.ydl.*project*.service.mapper";
public static String XML_URL = "sqlmap\\"; public static String XML_URL = "sqlmap\\";
public static String SERVICE_URL = "com.ydl.*project*.service"; public static String SERVICE_URL = "com.ydl.*project*.service.biz";
public static String SERVICE_IMPL_URL = "com.ydl.*project*.service.impl"; public static String SERVICE_IMPL_URL = "com.ydl.*project*.service.biz.impl";
public static String FACADE_URL = "com.ydl.*project*.facade"; public static String FACADE_URL = "com.ydl.*project*.intf.facade";
public static String FACADE_URL_IMPL = "com.ydl.*project*.facade"; public static String FACADE_URL_IMPL = "com.ydl.*project*.service.facade";
public static String CONTROLLER_URL = "com.ydl.*project*.api"; public static String CONTROLLER_URL = "com.ydl.*project*.api.apis";
//是否是Swagger配置 //是否是Swagger配置
public static final String IS_SWAGGER = "true"; public static final String IS_SWAGGER = "true";
public static final String PROJECT_NAME = "user"; public static final String PROJECT_NAME = "doctor_role";
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\\user-center\\ydl-user\\"; 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\\";// 生成文件存放位置
...@@ -104,8 +104,8 @@ public class MyGenerator implements Serializable { ...@@ -104,8 +104,8 @@ public class MyGenerator implements Serializable {
// 是否创建swagger配置文件 // 是否创建swagger配置文件
//String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString(); //String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString();
//String aa9 = Generator.createFacade(fileIntfUrl, bi).toString(); String aa9 = Generator.createFacade(fileIntfUrl, bi).toString();
//String aa10 = Generator.createFacadeImpl(fileServiceUrl, bi).toString(); String aa10 = Generator.createFacadeImpl(fileServiceUrl, bi).toString();
System.out.println(aa1); System.out.println(aa1);
System.out.println(aa2); System.out.println(aa2);
......
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