mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
!39 生成代码类名称不以模块名开头simpleClassName为空
Merge pull request !39 from 夜丶点缀了一个人的落寞/protection-lxm
This commit is contained in:
commit
1a17e5ecb8
@ -150,8 +150,8 @@ public class ToolCodegenEngine {
|
|||||||
bindingMap.put("simpleModuleName", simpleModuleName); // 将 system 转成 sys
|
bindingMap.put("simpleModuleName", simpleModuleName); // 将 system 转成 sys
|
||||||
bindingMap.put("simpleModuleName_upperFirst", upperFirst(simpleModuleName)); // 将 sys 转成 Sys
|
bindingMap.put("simpleModuleName_upperFirst", upperFirst(simpleModuleName)); // 将 sys 转成 Sys
|
||||||
// className 相关
|
// className 相关
|
||||||
String simpleClassName = subAfter(table.getClassName(), upperFirst(simpleModuleName)
|
// 去掉指定前缀 将 TestDictType 转换成 DictType. 因为在 create 等方法后,不需要带上 Test 前缀
|
||||||
, false); // 将 TestDictType 转换成 DictType. 因为在 create 等方法后,不需要带上 Test 前缀
|
String simpleClassName = removePrefix(table.getClassName(), upperFirst(simpleModuleName));
|
||||||
bindingMap.put("simpleClassName", simpleClassName);
|
bindingMap.put("simpleClassName", simpleClassName);
|
||||||
bindingMap.put("simpleClassName_underlineCase", toUnderlineCase(simpleClassName)); // 将 DictType 转换成 dict_type
|
bindingMap.put("simpleClassName_underlineCase", toUnderlineCase(simpleClassName)); // 将 DictType 转换成 dict_type
|
||||||
bindingMap.put("classNameVar", lowerFirst(simpleClassName)); // 将 DictType 转换成 dictType,用于变量
|
bindingMap.put("classNameVar", lowerFirst(simpleClassName)); // 将 DictType 转换成 dictType,用于变量
|
||||||
|
Loading…
Reference in New Issue
Block a user