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
4e45ca1d
Commit
4e45ca1d
authored
Mar 22, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaixiankang' into 'dev'
车型试验 - 待签字页面 - 查看 See merge request
!218
parents
e7110b0e
7434d59d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
3 deletions
+25
-3
TestCaseVO.java
...-review/src/main/java/com/ruoyi/domain/vo/TestCaseVO.java
+3
-0
TestUsecaseVO.java
...view/src/main/java/com/ruoyi/domain/vo/TestUsecaseVO.java
+3
-0
StrategyModelTestTaskNew.java
...java/com/ruoyi/service/impl/StrategyModelTestTaskNew.java
+11
-1
StrategyModelTestTaskSigned.java
...a/com/ruoyi/service/impl/StrategyModelTestTaskSigned.java
+5
-1
TestUseCaseMapper.xml
...ty-review/src/main/resources/mapper/TestUseCaseMapper.xml
+3
-1
No files found.
quality-review/src/main/java/com/ruoyi/domain/vo/TestCaseVO.java
View file @
4e45ca1d
...
...
@@ -39,4 +39,7 @@ public class TestCaseVO {
@ApiModelProperty
(
"用例描述"
)
private
String
description
;
@ApiModelProperty
(
"测试结果"
)
private
String
testResult
;
}
quality-review/src/main/java/com/ruoyi/domain/vo/TestUsecaseVO.java
View file @
4e45ca1d
...
...
@@ -57,4 +57,7 @@ public class TestUsecaseVO {
@ApiModelProperty
(
"标准测试方法"
)
private
String
testMethod
;
@ApiModelProperty
(
"测试结果"
)
private
String
testResult
;
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyModelTestTaskNew.java
View file @
4e45ca1d
...
...
@@ -47,8 +47,18 @@ public class StrategyModelTestTaskNew implements StrategyModelTestTask, Initiali
*/
@Override
public
List
<
ModelTestTaskViewResponse
>
doView
(
ModelTestTask
modelTestTask
)
{
List
<
ModelTestTaskViewResponse
>
list
=
getTestScheme
(
modelTestTask
.
getId
());
return
list
;
}
/**
* 获取试验方案
* @param taskId
* @return
*/
public
List
<
ModelTestTaskViewResponse
>
getTestScheme
(
Long
taskId
)
{
// 查询出本子任务所包含的测试场景集合
List
<
TestUsecaseVO
>
testCaseList
=
testUseCaseMapper
.
selectListByTaskId
(
modelTestTask
.
getId
()
);
List
<
TestUsecaseVO
>
testCaseList
=
testUseCaseMapper
.
selectListByTaskId
(
taskId
);
// 创建一个空List, 用于返回数据
List
<
ModelTestTaskViewResponse
>
list
=
new
ArrayList
<>();
// 创建一个HashMap, 用于存放数据。用例条款ID作为key
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyModelTestTaskSigned.java
View file @
4e45ca1d
...
...
@@ -42,9 +42,13 @@ public class StrategyModelTestTaskSigned implements StrategyModelTestTask, Initi
@Autowired
private
TaskStateFacade
taskStateFacade
;
@Autowired
private
StrategyModelTestTaskNew
strategyModelTestTaskNew
;
@Override
public
List
<
ModelTestTaskViewResponse
>
doView
(
ModelTestTask
modelTestTask
)
{
throw
new
ServiceException
(
"能查看一个已确认的任务"
,
HttpStatus
.
ERROR
);
List
<
ModelTestTaskViewResponse
>
list
=
strategyModelTestTaskNew
.
getTestScheme
(
modelTestTask
.
getId
());
return
list
;
}
@Override
...
...
quality-review/src/main/resources/mapper/TestUseCaseMapper.xml
View file @
4e45ca1d
...
...
@@ -62,7 +62,8 @@
tu.review_standard_id,
rs.chapter,
rs.text,
rs.test_method testMethod
rs.test_method testMethod,
tr.test_result testResult
from
t_test_usecase tu
left join t_test_scenario ts on tu.test_scenario_id = ts.id
...
...
@@ -71,6 +72,7 @@
left join t_task_scenario_relation tsr on tsr.test_scenario_id = ts.id
left join t_task t on tsr.task_id = t.id
left join t_model_test_task mtt on mtt.id = t.model_test_task_id
left join t_test_records tr on tu.case_id = tr.usecase_id
where
mtt.id = #{id}
</select>
...
...
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