Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
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
wangpeng
dinky
Commits
f9327d93
Unverified
Commit
f9327d93
authored
Dec 07, 2022
by
zhu-mingye
Committed by
GitHub
Dec 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix database copy error (#1403)
parent
c476138e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
DataBaseServiceImpl.java
...main/java/com/dlink/service/impl/DataBaseServiceImpl.java
+1
-1
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/DataBaseServiceImpl.java
View file @
f9327d93
...
...
@@ -205,7 +205,7 @@ public class DataBaseServiceImpl extends SuperServiceImpl<DataBaseMapper, DataBa
public
boolean
copyDatabase
(
DataBase
database
)
{
String
name
=
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
).
substring
(
0
,
10
);
database
.
setId
(
null
);
database
.
setName
(
database
.
getName
().
substring
(
0
,
10
)
+
"_"
+
name
);
database
.
setName
(
(
database
.
getName
().
length
()
>
10
?
database
.
getName
().
substring
(
0
,
10
)
:
database
.
getName
()
)
+
"_"
+
name
);
database
.
setCreateTime
(
null
);
return
this
.
save
(
database
);
}
...
...
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