mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 21:29:02 +08:00
🔀 合并分支。
This commit is contained in:
commit
8b9b541cee
30 files changed
+4523
-4448
No files matched your search
+6
-5
@@ -24,6 +24,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.pig4cloud.pigx.codegen.entity.ColumnEntity;
|
||||
import com.pig4cloud.pigx.codegen.entity.GenConfig;
|
||||
import com.pig4cloud.pigx.codegen.entity.TableEntity;
|
||||
import com.pig4cloud.pigx.common.core.constant.CommonConstant;
|
||||
import com.pig4cloud.pigx.common.core.exception.CheckedException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.configuration.Configuration;
|
||||
@@ -239,7 +240,7 @@ public class GenUtils {
|
||||
* 获取文件名
|
||||
*/
|
||||
private static String getFileName(String template, String className, String packageName, String moduleName) {
|
||||
String packagePath = "pigx" + File.separator + "src" + File.separator + "main" + File.separator + "java" + File.separator;
|
||||
String packagePath = CommonConstant.BACK_END_PROJECT + File.separator + "src" + File.separator + "main" + File.separator + "java" + File.separator;
|
||||
if (StringUtils.isNotBlank(packageName)) {
|
||||
packagePath += packageName.replace(".", File.separator) + File.separator + moduleName + File.separator;
|
||||
}
|
||||
@@ -265,7 +266,7 @@ public class GenUtils {
|
||||
}
|
||||
|
||||
if (template.contains(MAPPER_XML_VM)) {
|
||||
return "pigx" + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "mapper" + File.separator + className + "Mapper.xml";
|
||||
return CommonConstant.BACK_END_PROJECT + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "mapper" + File.separator + className + "Mapper.xml";
|
||||
}
|
||||
|
||||
if (template.contains(MENU_SQL_VM)) {
|
||||
@@ -273,16 +274,16 @@ public class GenUtils {
|
||||
}
|
||||
|
||||
if (template.contains(INDEX_VUE_VM)) {
|
||||
return "pigx-ui" + File.separator + "src" + File.separator + "views" +
|
||||
return CommonConstant.FRONT_END_PROJECT + File.separator + "src" + File.separator + "views" +
|
||||
File.separator + moduleName + File.separator + className.toLowerCase() + File.separator + "index.vue";
|
||||
}
|
||||
|
||||
if (template.contains(API_JS_VM)) {
|
||||
return "pigx-ui" + File.separator + "src" + File.separator + "api" + File.separator + className.toLowerCase() + ".js";
|
||||
return CommonConstant.FRONT_END_PROJECT + File.separator + "src" + File.separator + "api" + File.separator + className.toLowerCase() + ".js";
|
||||
}
|
||||
|
||||
if (template.contains(CRUD_JS_VM)) {
|
||||
return "pigx-ui" + File.separator + "src" + File.separator + "const" +
|
||||
return CommonConstant.FRONT_END_PROJECT + File.separator + "src" + File.separator + "const" +
|
||||
File.separator + "crud" + File.separator + className.toLowerCase() + ".js";
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,3 @@ eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://pig:pig@192.168.0.20:1025/eureka/
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
Reference in new issue
Block a user