Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
ca6a4b2e
Commit
ca6a4b2e
authored
Mar 13, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量替换表前缀调整
parent
9247e004
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
ruoyi-admin/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css
+1
-1
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
+22
-2
ruoyi-generator/src/main/resources/vm/html/list.html.vm
+1
-1
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/summernote/summernote-bs3.css
View file @
ca6a4b2e
...
...
@@ -5778,7 +5778,7 @@ td.visible-lg {
display
:
table-cell
!important
;
}
}
.hidden-xs
{
.
summernote
.
hidden-xs
{
display
:
block
!important
;
}
tr
.hidden-xs
{
...
...
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
View file @
ca6a4b2e
...
...
@@ -166,13 +166,33 @@ public class GenUtils
if
(
autoRemovePre
&&
StringUtils
.
isNotEmpty
(
tablePrefix
))
{
String
[]
searchList
=
StringUtils
.
split
(
tablePrefix
,
","
);
String
[]
replacementList
=
emptyList
(
searchList
.
length
);
tableName
=
StringUtils
.
replaceEach
(
tableName
,
searchList
,
replacementList
);
tableName
=
replaceFirst
(
tableName
,
searchList
);
}
return
StringUtils
.
convertToCamelCase
(
tableName
);
}
/**
* 批量替换前缀
*
* @param replacementm 替换值
* @param searchList 替换列表
* @return
*/
public
static
String
replaceFirst
(
String
replacementm
,
String
[]
searchList
)
{
String
text
=
replacementm
;
for
(
String
searchString
:
searchList
)
{
if
(
replacementm
.
startsWith
(
searchString
))
{
text
=
replacementm
.
replaceFirst
(
searchString
,
""
);
break
;
}
}
return
text
;
}
/**
* 关键字替换
*
* @param name 需要被替换的名字
...
...
ruoyi-generator/src/main/resources/vm/html/list.html.vm
View file @
ca6a4b2e
...
...
@@ -71,7 +71,7 @@
</a>
<a
class=
"btn btn-warning"
onclick=
"$.table.exportExcel()"
shiro:hasPermission=
"${permissionPrefix}:export"
>
<i
class=
"fa fa-download"
></i>
导出
</a>
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
...
...
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