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
8c4389af
Commit
8c4389af
authored
Jul 03, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
dev - master 36 See merge request
!396
parents
24df301e
6bcb4ed6
Changes
1
Hide 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 @
8c4389af
...
...
@@ -195,14 +195,16 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
ReviewEnterpriseArchive
reviewEnterpriseArchive
=
reviewEnterpriseArchiveMapper
.
selectById
(
request
.
getId
());
// 按逗号拆分字符串
String
[]
photoUrls
=
reviewEnterpriseArchive
.
getPhoto
().
split
(
","
);
String
[]
photoNames
=
reviewEnterpriseArchive
.
getPhotoName
().
split
(
","
);
// 将拆分后的字符串配对创建AttachmentsVO对象,并加入到List中
List
<
AttachmentsVO
>
attachmentsVOList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
photoUrls
.
length
;
i
++)
{
AttachmentsVO
vo
=
new
AttachmentsVO
(
photoUrls
[
i
],
photoNames
[
i
]);
attachmentsVOList
.
add
(
vo
);
if
(
reviewEnterpriseArchive
.
getPhoto
()
!=
null
&&
reviewEnterpriseArchive
.
getPhotoName
()
!=
null
)
{
String
[]
photoUrls
=
reviewEnterpriseArchive
.
getPhoto
().
split
(
","
);
String
[]
photoNames
=
reviewEnterpriseArchive
.
getPhotoName
().
split
(
","
);
for
(
int
i
=
0
;
i
<
photoUrls
.
length
;
i
++)
{
AttachmentsVO
vo
=
new
AttachmentsVO
(
photoUrls
[
i
],
photoNames
[
i
]);
attachmentsVOList
.
add
(
vo
);
}
}
reviewEnterpriseArchive
.
setUrl
(
attachmentsVOList
);
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