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
08941cdc
Commit
08941cdc
authored
Jul 01, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车企文件上传附件
parent
a43653b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+8
-4
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
08941cdc
...
...
@@ -151,8 +151,10 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
throw
new
ServiceException
(
"新增文件名称重复,请检查"
,
HttpStatus
.
ERROR
);
}
else
{
// 将附件地址存入photo字段中
if
(
reviewEnterpriseArchive
.
getUrl
()
!=
null
&&
reviewEnterpriseArchive
.
getUrl
().
length
!=
0
)
{
String
joinUrl
=
StringUtils
.
join
(
reviewEnterpriseArchive
.
getUrl
(),
","
);
reviewEnterpriseArchive
.
setPhoto
(
joinUrl
);
}
reviewEnterpriseArchiveService
.
save
(
reviewEnterpriseArchive
);
ReviewEnterpriseArchiveFindByTaskIdRequest
request
=
new
ReviewEnterpriseArchiveFindByTaskIdRequest
();
...
...
@@ -249,8 +251,10 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
@Override
public
void
editEnterpriseArchive
(
ReviewEnterpriseArchive
reviewEnterpriseArchive
)
{
// 将附件地址存入photo字段中
if
(
reviewEnterpriseArchive
.
getUrl
()
!=
null
&&
reviewEnterpriseArchive
.
getUrl
().
length
!=
0
)
{
String
joinUrl
=
StringUtils
.
join
(
reviewEnterpriseArchive
.
getUrl
(),
","
);
reviewEnterpriseArchive
.
setPhoto
(
joinUrl
);
}
reviewEnterpriseArchiveService
.
updateById
(
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