Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
b0416933
Commit
b0416933
authored
Mar 15, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分sqlXml生成缺陷
parent
0e9ce327
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
appbuild-manager/src/main/java/com/mortals/xhx/common/utils/GenUtils.java
.../src/main/java/com/mortals/xhx/common/utils/GenUtils.java
+17
-0
appbuild-manager/src/main/resources/generator.yml
appbuild-manager/src/main/resources/generator.yml
+1
-1
No files found.
appbuild-manager/src/main/java/com/mortals/xhx/common/utils/GenUtils.java
View file @
b0416933
...
@@ -343,7 +343,24 @@ public class GenUtils {
...
@@ -343,7 +343,24 @@ public class GenUtils {
text
=
replacementm
.
replaceFirst
(
searchString
,
""
);
text
=
replacementm
.
replaceFirst
(
searchString
,
""
);
break
;
break
;
}
}
// replacementm='mortals_ccc_' 配置了mortals_*_ 正则匹配替换
if
(
searchString
.
contains
(
"*"
)){
//如果包含*号
String
[]
vars
=
searchString
.
split
(
"_"
);
for
(
String
var
:
vars
)
{
if
(
replacementm
.
startsWith
(
var
))
{
text
=
replacementm
.
replaceFirst
(
searchString
,
""
);
break
;
}
}
}
}
}
//todo 如果带*号
return
text
;
return
text
;
}
}
...
...
appbuild-manager/src/main/resources/generator.yml
View file @
b0416933
...
@@ -10,5 +10,5 @@ gen:
...
@@ -10,5 +10,5 @@ gen:
# 自动去除表前缀,默认是false
# 自动去除表前缀,默认是false
autoRemovePre
:
true
autoRemovePre
:
true
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix
:
sys_,mortals_xhx_,mortals_iot_,mortals_stp_,mortals_bat_,mortals_sys_,mortals_etl_,mortals_,tbl_
tablePrefix
:
sys_,mortals_xhx_,mortals_iot_,mortals_stp_,mortals_bat_,mortals_
*_,mortals_
sys_,mortals_etl_,mortals_,tbl_
systemTable
:
mortals_xhx_user,mortals_xhx_valid_code,mortals_xhx_uploadfile,mortals_xhx_task,mortals_xhx_table_index,mortals_xhx_role,mortals_xhx_role_auth,mortals_xhx_role_user,mortals_xhx_menu,mortals_xhx_oper_log,mortals_xhx_param,mortals_xhx_idgenerator,mortals_xhx_area
systemTable
:
mortals_xhx_user,mortals_xhx_valid_code,mortals_xhx_uploadfile,mortals_xhx_task,mortals_xhx_table_index,mortals_xhx_role,mortals_xhx_role_auth,mortals_xhx_role_user,mortals_xhx_menu,mortals_xhx_oper_log,mortals_xhx_param,mortals_xhx_idgenerator,mortals_xhx_area
\ No newline at end of file
Write
Preview
Markdown
is supported
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