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
b453d995
Commit
b453d995
authored
Mar 19, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaixiankang' into 'dev'
根据车型试验子任务ID获取用例集合 See merge request
!200
parents
88a0d71a
710df484
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
TestUsecaseVO.java
...view/src/main/java/com/ruoyi/domain/vo/TestUsecaseVO.java
+3
-0
TestUseCaseService.java
...w/src/main/java/com/ruoyi/service/TestUseCaseService.java
+1
-1
TestUseCaseServiceImpl.java
...n/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
+2
-2
TestUserCaseController.java
...w/src/main/java/com/ruoyi/web/TestUserCaseController.java
+1
-1
TestUseCaseMapper.xml
...ty-review/src/main/resources/mapper/TestUseCaseMapper.xml
+1
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/vo/TestUsecaseVO.java
View file @
b453d995
...
...
@@ -21,6 +21,9 @@ public class TestUsecaseVO {
@ApiModelProperty
(
"测试用例ID"
)
private
Long
id
;
@ApiModelProperty
(
"用例ID"
)
private
String
caseId
;
@ApiModelProperty
(
"测试场景"
)
private
String
testScenario
;
...
...
quality-review/src/main/java/com/ruoyi/service/TestUseCaseService.java
View file @
b453d995
...
...
@@ -26,5 +26,5 @@ public interface TestUseCaseService extends IService<TestUseCase> {
* @param request
* @return
*/
List
<
Lo
ng
>
selectCaseIdList
(
TestUseCaseIdListRequest
request
);
List
<
Stri
ng
>
selectCaseIdList
(
TestUseCaseIdListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
View file @
b453d995
...
...
@@ -41,9 +41,9 @@ public class TestUseCaseServiceImpl extends ServiceImpl<TestUseCaseMapper, TestU
}
@Override
public
List
<
Lo
ng
>
selectCaseIdList
(
TestUseCaseIdListRequest
request
)
{
public
List
<
Stri
ng
>
selectCaseIdList
(
TestUseCaseIdListRequest
request
)
{
List
<
TestUsecaseVO
>
list
=
testUseCaseMapper
.
selectListByTaskId
(
request
.
getModelTestId
());
return
list
.
stream
().
map
(
TestUsecaseVO:
:
getId
).
collect
(
Collectors
.
toList
());
return
list
.
stream
().
map
(
TestUsecaseVO:
:
get
Case
Id
).
collect
(
Collectors
.
toList
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/TestUserCaseController.java
View file @
b453d995
...
...
@@ -44,7 +44,7 @@ public class TestUserCaseController extends BaseController{
@Anonymous
@ApiOperation
(
"根据场景查询用例ID集合"
)
@PostMapping
(
"/getCaseIdList"
)
public
R
<
List
<
Lo
ng
>>
getCaseIdList
(
@Validated
@RequestBody
TestUseCaseIdListRequest
request
)
{
public
R
<
List
<
Stri
ng
>>
getCaseIdList
(
@Validated
@RequestBody
TestUseCaseIdListRequest
request
)
{
return
R
.
ok
(
testUseCaseService
.
selectCaseIdList
(
request
));
}
}
quality-review/src/main/resources/mapper/TestUseCaseMapper.xml
View file @
b453d995
...
...
@@ -51,6 +51,7 @@
<select
id=
"selectListByTaskId"
resultType=
"com.ruoyi.domain.vo.TestUsecaseVO"
>
select
tu.id,
tu.case_id caseId,
ts.test_scenario testScenario,
tt.test_type testType,
tu.usecase_no usecaseNo,
...
...
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