Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
1fa112aa
Commit
1fa112aa
authored
Jun 26, 2024
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
3da8e9ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
GainDataBiz.java
.../java/com/upyuns/platform/rs/website/biz/GainDataBiz.java
+8
-6
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/GainDataBiz.java
View file @
1fa112aa
...
...
@@ -37,22 +37,24 @@ public class GainDataBiz extends BaseBiz<GainDataMapper,GainData> {
public
void
dealGtdata
(
List
<
GainData
>
list
)
{
for
(
GainData
gainData:
list
)
{
String
gtdataPath
=
gainData
.
getGtdataPath
();
//判断gtdata路径是否存在
if
(
StrUtil
.
isBlank
(
g
ainData
.
getGtdataPath
()
))
{
if
(
StrUtil
.
isBlank
(
g
tdataPath
))
{
//根据id创建gtdata目录
String
gtdataPath
=
"/rscloudmart"
+
gaindataPath
+
gainData
.
getId
();
gtdataPath
=
"/rscloudmart"
+
gaindataPath
+
"/"
+
gainData
.
getId
();
gtDataRestClient
.
mkdirs
(
gtdataPath
);
// gainData.setGtdataPath(gtdataPath);
String
finalGtdataPath
=
gtdataPath
;
updateSelectiveById
(
new
GainData
()
{{
setId
(
gainData
.
getId
());
setGtdataPath
(
g
tdataPath
);
setGtdataPath
(
finalG
tdataPath
);
setHasGtdata
(
HASGTDATA_FIN
);
}});
}
else
{
//判断路径是否存在
//isExist(parentPath).get("exist").toString().equals("true")
if
(!
gtDataRestClient
.
isExist
(
g
ainData
.
getGtdataPath
()
).
get
(
"exist"
).
toString
().
equals
(
"true"
)){
gtDataRestClient
.
mkdirs
(
g
ainData
.
getGtdataPath
()
);
if
(!
gtDataRestClient
.
isExist
(
g
tdataPath
).
get
(
"exist"
).
toString
().
equals
(
"true"
)){
gtDataRestClient
.
mkdirs
(
g
tdataPath
);
updateSelectiveById
(
new
GainData
()
{{
setId
(
gainData
.
getId
());
setHasGtdata
(
HASGTDATA_FIN
);
...
...
@@ -71,7 +73,7 @@ public class GainDataBiz extends BaseBiz<GainDataMapper,GainData> {
for
(
FileData
fileData
:
fileDataList
)
{
if
(
StrUtil
.
isBlank
(
fileData
.
getGtdataPath
()))
{
String
fileGtdataPath
=
"/rscloudmart"
+
gaindataPath
+
gainData
.
getId
()
+
"/"
+
fileData
.
getFilename
()
+
fileData
.
getFiletype
();
String
fileGtdataPath
=
gtdataPath
+
"/"
+
fileData
.
getFilename
()
+
fileData
.
getFiletype
();
FileData
finalFileData
=
fileData
;
fileDataBiz
.
updateSelectiveById
(
new
FileData
(){{
setId
(
finalFileData
.
getId
());
...
...
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