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
5e4c965d
Commit
5e4c965d
authored
Mar 26, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增车企文件
parent
81a86ca8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+13
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
5e4c965d
...
@@ -24,6 +24,7 @@ import org.springframework.stereotype.Service;
...
@@ -24,6 +24,7 @@ import org.springframework.stereotype.Service;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* @author wangfei
* @author wangfei
...
@@ -83,6 +84,18 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
...
@@ -83,6 +84,18 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
throw
new
ServiceException
(
"新增文件名称重复,请检查"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"新增文件名称重复,请检查"
,
HttpStatus
.
ERROR
);
}
else
{
}
else
{
reviewEnterpriseArchiveService
.
save
(
reviewEnterpriseArchive
);
reviewEnterpriseArchiveService
.
save
(
reviewEnterpriseArchive
);
ReviewEnterpriseArchiveFindByTaskIdRequest
request
=
new
ReviewEnterpriseArchiveFindByTaskIdRequest
();
request
.
setTaskId
(
reviewEnterpriseArchive
.
getTaskId
());
List
<
ReviewEnterpriseArchive
>
list
=
reviewEnterpriseArchiveMapper
.
findEnterpriseArchiveByTaskId
(
request
);
if
(
list
!=
null
&&
list
.
size
()
!=
0
)
{
for
(
ReviewEnterpriseArchive
archive
:
list
)
{
if
(!
Objects
.
equals
(
archive
.
getEnterpriseName
(),
reviewEnterpriseArchive
.
getEnterpriseName
()))
{
archive
.
setEnterpriseName
(
reviewEnterpriseArchive
.
getEnterpriseName
());
}
}
reviewEnterpriseArchiveService
.
updateBatchById
(
list
);
}
}
}
return
reviewEnterpriseArchive
.
getId
();
return
reviewEnterpriseArchive
.
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