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