Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
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
王飞
vehicle-quality-review
Commits
bdbc4524
Commit
bdbc4524
authored
Jul 03, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车企文件添加
parent
66cda2a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+8
-6
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
bdbc4524
...
@@ -195,15 +195,17 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
...
@@ -195,15 +195,17 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
ReviewEnterpriseArchive
reviewEnterpriseArchive
=
reviewEnterpriseArchiveMapper
.
selectById
(
request
.
getId
());
ReviewEnterpriseArchive
reviewEnterpriseArchive
=
reviewEnterpriseArchiveMapper
.
selectById
(
request
.
getId
());
// 按逗号拆分字符串
// 按逗号拆分字符串
// 将拆分后的字符串配对创建AttachmentsVO对象,并加入到List中
List
<
AttachmentsVO
>
attachmentsVOList
=
new
ArrayList
<>();
if
(
reviewEnterpriseArchive
.
getPhoto
()
!=
null
&&
reviewEnterpriseArchive
.
getPhotoName
()
!=
null
)
{
String
[]
photoUrls
=
reviewEnterpriseArchive
.
getPhoto
().
split
(
","
);
String
[]
photoUrls
=
reviewEnterpriseArchive
.
getPhoto
().
split
(
","
);
String
[]
photoNames
=
reviewEnterpriseArchive
.
getPhotoName
().
split
(
","
);
String
[]
photoNames
=
reviewEnterpriseArchive
.
getPhotoName
().
split
(
","
);
// 将拆分后的字符串配对创建AttachmentsVO对象,并加入到List中
List
<
AttachmentsVO
>
attachmentsVOList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
photoUrls
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
photoUrls
.
length
;
i
++)
{
AttachmentsVO
vo
=
new
AttachmentsVO
(
photoUrls
[
i
],
photoNames
[
i
]);
AttachmentsVO
vo
=
new
AttachmentsVO
(
photoUrls
[
i
],
photoNames
[
i
]);
attachmentsVOList
.
add
(
vo
);
attachmentsVOList
.
add
(
vo
);
}
}
}
reviewEnterpriseArchive
.
setUrl
(
attachmentsVOList
);
reviewEnterpriseArchive
.
setUrl
(
attachmentsVOList
);
return
reviewEnterpriseArchive
;
return
reviewEnterpriseArchive
;
}
}
...
...
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