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
4a6edec8
Commit
4a6edec8
authored
Mar 19, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaixiankang' into 'dev'
测试矩阵 - ID返回值变为科恩数据 See merge request
!203
parents
8fe49413
6b99ab2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
TestUseCase.java
...ty-review/src/main/java/com/ruoyi/domain/TestUseCase.java
+4
-1
MatrixServiceImpl.java
...c/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
+4
-4
No files found.
quality-review/src/main/java/com/ruoyi/domain/TestUseCase.java
View file @
4a6edec8
...
...
@@ -87,6 +87,9 @@ public class TestUseCase implements Serializable {
@TableField
(
exist
=
false
)
private
String
testType
;
@ApiModelProperty
(
"用例ID"
)
private
String
caseId
;
/**
* 返回用例在矩阵中的坐标
* @return
...
...
quality-review/src/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
View file @
4a6edec8
...
...
@@ -73,8 +73,8 @@ public class MatrixServiceImpl implements MatrixService {
for
(
TestType
type
:
types
)
{
String
columnId
=
String
.
valueOf
(
type
.
getId
());
String
coordinates
=
scenario
.
getId
()
+
columnId
;
Lo
ng
useCaseId
=
getUseCaseIdByCoordinates
(
useCases
,
coordinates
);
row
.
put
(
columnId
,
useCaseId
==
null
?
""
:
String
.
valueOf
(
useCaseId
)
);
Stri
ng
useCaseId
=
getUseCaseIdByCoordinates
(
useCases
,
coordinates
);
row
.
put
(
columnId
,
useCaseId
==
null
?
""
:
useCaseId
);
}
rows
.
add
(
row
);
...
...
@@ -83,11 +83,11 @@ public class MatrixServiceImpl implements MatrixService {
response
.
setRows
(
rows
);
}
public
Lo
ng
getUseCaseIdByCoordinates
(
List
<
TestUseCase
>
useCases
,
String
coordinates
)
{
public
Stri
ng
getUseCaseIdByCoordinates
(
List
<
TestUseCase
>
useCases
,
String
coordinates
)
{
for
(
TestUseCase
useCase
:
useCases
)
{
if
(
useCase
.
getCoordinates
().
equals
(
coordinates
))
{
return
useCase
.
getId
();
return
useCase
.
get
Case
Id
();
}
}
return
null
;
...
...
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