Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
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
Administrator
xzxt-app-report
Commits
6043849c
Commit
6043849c
authored
May 05, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本更新文件上传修改
parent
eb16b7fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/main/java/org/springblade/founder/bbgx/service/impl/AppBbgxServiceImpl.java
+9
-7
No files found.
src/main/java/org/springblade/founder/bbgx/service/impl/AppBbgxServiceImpl.java
View file @
6043849c
...
...
@@ -92,20 +92,23 @@ public class AppBbgxServiceImpl extends ServiceImpl<AppBbgxMapper, AppBbgx> impl
}
}
File
oldFile
=
new
File
(
bbgxfjPath
+
File
.
separator
+
fileName
);
if
(
oldFile
.
exists
())
{
// String suffix = "." + FilenameUtils.getExtension(fileName);
String
dzwjmc
=
DateUtil
.
getSysDateStr
()
+
"_"
+
fileName
;
String
dzwjwz
=
bbgxfjPath
+
File
.
separator
+
dzwjmc
;
File
newFile
=
new
File
(
bbgxfjPath
+
File
.
separator
+
dzwjmc
);
if
(!
newFile
.
exists
())
{
boolean
b
=
oldFile
.
renameTo
(
newFile
);
int
insert
;
try
{
insert
=
appBbgxMapper
.
insert
(
bbgx
);
boolean
b
=
true
;
if
(
oldFile
.
exists
())
{
b
=
oldFile
.
renameTo
(
newFile
);
}
if
(
b
)
{
file
.
transferTo
(
new
File
(
bbgxfjPath
+
File
.
separator
,
fileName
));
bbgx
.
setAppGxwjwz
(
dzwjwz
);
bbgx
.
setFilename
(
dzwjmc
);
int
insert
;
try
{
insert
=
appBbgxMapper
.
insert
(
bbgx
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
insert
=
0
;
...
...
@@ -113,8 +116,7 @@ public class AppBbgxServiceImpl extends ServiceImpl<AppBbgxMapper, AppBbgx> impl
if
(
insert
==
0
)
{
return
null
;
}
}
}
}
return
version
;
}
...
...
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