Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
12a7e033
Unverified
Commit
12a7e033
authored
Jul 19, 2021
by
yuchumian
Committed by
GitHub
Jul 19, 2021
Browse files
Update GenUtil.java (#654)
修改移除表前缀后变量名大写
parent
3637ae02
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-generator/src/main/java/me/zhengjie/utils/GenUtil.java
View file @
12a7e033
...
@@ -208,6 +208,7 @@ public class GenUtil {
...
@@ -208,6 +208,7 @@ public class GenUtil {
if
(
StringUtils
.
isNotEmpty
(
genConfig
.
getPrefix
()))
{
if
(
StringUtils
.
isNotEmpty
(
genConfig
.
getPrefix
()))
{
className
=
StringUtils
.
toCapitalizeCamelCase
(
StrUtil
.
removePrefix
(
genConfig
.
getTableName
(),
genConfig
.
getPrefix
()));
className
=
StringUtils
.
toCapitalizeCamelCase
(
StrUtil
.
removePrefix
(
genConfig
.
getTableName
(),
genConfig
.
getPrefix
()));
changeClassName
=
StringUtils
.
toCamelCase
(
StrUtil
.
removePrefix
(
genConfig
.
getTableName
(),
genConfig
.
getPrefix
()));
changeClassName
=
StringUtils
.
toCamelCase
(
StrUtil
.
removePrefix
(
genConfig
.
getTableName
(),
genConfig
.
getPrefix
()));
changeClassName
=
StringUtils
.
uncapitalize
(
changeClassName
);
}
}
// 保存类名
// 保存类名
genMap
.
put
(
"className"
,
className
);
genMap
.
put
(
"className"
,
className
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment