Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
61f3a4f6
Commit
61f3a4f6
authored
Sep 05, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'master'
科恩获取树状测试用例数量 See merge request
!7
parents
dc74ac4e
a15f4dd8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
TestUseCaseServiceImpl.java
...n/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
+7
-1
TestUserCaseListNewResponse.java
...a/com/ruoyi/web/response/TestUserCaseListNewResponse.java
+3
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
View file @
61f3a4f6
...
...
@@ -308,7 +308,13 @@ public class TestUseCaseServiceImpl extends ServiceImpl<TestUseCaseMapper, TestU
// 获取测试用例
if
(
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
)
!=
null
)
{
List
<
StandardNewVO
>
list
=
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
getList
(
"nodes"
,
StandardNewVO
.
class
);
Integer
useCaseNum
=
0
;
for
(
StandardNewVO
vo
:
list
)
{
if
(!
vo
.
getUseCases
().
isEmpty
())
{
useCaseNum
+=
vo
.
getUseCases
().
size
();
}
}
userCaseResponse
.
setUseCaseNum
(
useCaseNum
);
userCaseResponse
.
setUseCases
(
list
);
// 获取总条数
Integer
totalCount
=
(
Integer
)
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
get
(
"totalCount"
);
...
...
quality-review/src/main/java/com/ruoyi/web/response/TestUserCaseListNewResponse.java
View file @
61f3a4f6
...
...
@@ -17,4 +17,7 @@ public class TestUserCaseListNewResponse {
@ApiModelProperty
(
"总条数"
)
Integer
totalCount
;
@ApiModelProperty
(
"用例总条数"
)
Integer
useCaseNum
;
}
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