refactor: 代码生成器
This commit is contained in:
@@ -6,6 +6,14 @@ import org.apache.commons.configuration.PropertiesConfiguration;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 工具类
|
||||
* </p>
|
||||
*
|
||||
* @author lyd
|
||||
* @since 2023-05-03
|
||||
*/
|
||||
public class ColUtil {
|
||||
private static final Logger log = LoggerFactory.getLogger(ColUtil.class);
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ import java.util.Map;
|
||||
|
||||
import static org.nl.modules.common.utils.FileUtil.SYS_TEM_DIR;
|
||||
|
||||
|
||||
/**
|
||||
* @author: lyd
|
||||
* @description: 代码生成
|
||||
@@ -101,7 +100,7 @@ public class GenUtil {
|
||||
* 定义后端文件路径以及名称
|
||||
*/
|
||||
private static String getAdminFilePath(String templateName, CodeGenConfig genConfig, String className, String rootPath) {
|
||||
String projectPath = rootPath + File.separator;
|
||||
String projectPath = rootPath + File.separator + genConfig.getModule_name() + File.separator;
|
||||
String packagePath = projectPath + "src" + File.separator + "main" + File.separator + "java" + File.separator;
|
||||
if (!ObjectUtils.isEmpty(genConfig.getPack())) {
|
||||
packagePath += genConfig.getPack().replace(".", File.separator) + File.separator;
|
||||
@@ -323,7 +322,6 @@ public class GenUtil {
|
||||
|
||||
/**
|
||||
* 打包下载
|
||||
*
|
||||
* @param columns
|
||||
* @param genConfig
|
||||
* @return
|
||||
@@ -371,7 +369,6 @@ public class GenUtil {
|
||||
|
||||
/**
|
||||
* 生成文件
|
||||
*
|
||||
* @param file
|
||||
* @param template
|
||||
* @param map
|
||||
@@ -394,7 +391,6 @@ public class GenUtil {
|
||||
|
||||
/**
|
||||
* 生成代码
|
||||
*
|
||||
* @param columnInfos
|
||||
* @param genConfig
|
||||
* @throws IOException
|
||||
|
||||
Reference in New Issue
Block a user