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
3a6f1bcb
Commit
3a6f1bcb
authored
Mar 29, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaixiankang' into 'dev'
检验内容 - 标准和用例关系 See merge request
!243
parents
c45034f8
4af815ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ReviewStandardServiceImpl.java
...ava/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
+3
-3
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
View file @
3a6f1bcb
...
...
@@ -156,9 +156,9 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
// 查看此标准下所有的测试用例
List
<
TestUseCase
>
usecaseRelationList
=
testUseCaseMapper
.
selectList
(
new
QueryWrapper
<
TestUseCase
>().
eq
(
"review_standard_id"
,
standardId
));
// 此标准还可以选择的用例
List
<
OptionalUseCasesVO
>
optionalUseCasesVOList
=
testUseCases
.
stream
().
filter
(
a
->
!
a
.
getStandardId
().
equals
(
standardId
)).
collect
(
Collectors
.
toList
());
optionalUseCasesVOList
.
stream
().
forEach
(
obj
->
obj
.
setDisabled
(
false
));
response
.
setOptionalUseCasesList
(
optionalUseCasesVOList
);
//
List<OptionalUseCasesVO> optionalUseCasesVOList = testUseCases.stream().filter(a -> !a.getStandardId().equals(standardId)).collect(Collectors.toList());
testUseCases
.
stream
().
forEach
(
obj
->
obj
.
setDisabled
(
false
));
response
.
setOptionalUseCasesList
(
testUseCases
);
response
.
setSelectedUseCaseList
(
usecaseRelationList
.
stream
().
map
(
TestUseCase:
:
getId
).
collect
(
Collectors
.
toList
()));
return
response
;
}
...
...
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