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
b491d203
Commit
b491d203
authored
Apr 30, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
检验内容库查询标准下测试用例(科恩) See merge request
!309
parents
01fdac3a
098d3931
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
7 deletions
+66
-7
ReviewStandardService.java
...rc/main/java/com/ruoyi/service/ReviewStandardService.java
+7
-0
ReviewStandardServiceImpl.java
...ava/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
+21
-6
ReviewStandardController.java
...src/main/java/com/ruoyi/web/ReviewStandardController.java
+16
-0
ReviewStandardListByPageRequest.java
...om/ruoyi/web/request/ReviewStandardListByPageRequest.java
+0
-1
UseCaseListResponse.java
...main/java/com/ruoyi/web/response/UseCaseListResponse.java
+22
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/ReviewStandardService.java
View file @
b491d203
...
...
@@ -79,4 +79,11 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
* @throws IOException
*/
InspectionContentResponse
getList
(
String
request
)
throws
IOException
;
/**
* 检验内容库查询标准下测试用例(科恩)
* @param request
* @return
*/
List
<
UseCaseListResponse
>
getUseCaseList
(
String
request
)
throws
IOException
;
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
View file @
b491d203
...
...
@@ -220,14 +220,29 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
Response
response
=
client
.
newCall
(
requestKE
).
execute
();
String
string
=
response
.
body
().
string
();
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
string
);
// 获取测试用例
List
<
InspectionContentVO
>
list
=
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
getList
(
"nodes"
,
InspectionContentVO
.
class
);
inspectionContentResponse
.
setInspectionContent
(
list
);
// 获取总条数
Integer
totalCount
=
(
Integer
)
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
get
(
"totalCount"
);
inspectionContentResponse
.
setTotalCount
(
totalCount
);
if
(
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
)
!=
null
)
{
// 获取测试用例
List
<
InspectionContentVO
>
list
=
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
getList
(
"nodes"
,
InspectionContentVO
.
class
);
inspectionContentResponse
.
setInspectionContent
(
list
);
// 获取总条数
Integer
totalCount
=
(
Integer
)
jsonObject
.
getJSONObject
(
"data"
).
getJSONObject
(
"regulationByName"
).
getJSONObject
(
"items"
).
get
(
"totalCount"
);
inspectionContentResponse
.
setTotalCount
(
totalCount
);
}
else
{
List
<
InspectionContentVO
>
list
=
new
ArrayList
<>();
inspectionContentResponse
.
setInspectionContent
(
list
);
inspectionContentResponse
.
setTotalCount
(
0
);
}
return
inspectionContentResponse
;
}
@Override
public
List
<
UseCaseListResponse
>
getUseCaseList
(
String
request
)
throws
IOException
{
// TODO 检验内容库查询标准下测试用例(科恩)
return
null
;
}
/**
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewStandardController.java
View file @
b491d203
...
...
@@ -137,4 +137,20 @@ public class ReviewStandardController extends BaseController {
return
R
.
ok
(
reviewStandardService
.
getList
(
request
));
}
/**
* 检验内容库查询标准下测试用例(科恩)
* @param request
* @return
* @throws IOException
*/
@ApiOperation
(
"检验内容库查询标准下测试用例(科恩)"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getUseCaseList"
,
produces
=
"application/json;charset=UTF-8"
)
public
TableDataInfo
<
UseCaseListResponse
>
getUseCaseList
(
@Validated
@RequestBody
String
request
)
throws
IOException
{
return
getDataTable
(
reviewStandardService
.
getUseCaseList
(
request
));
}
}
quality-review/src/main/java/com/ruoyi/web/request/ReviewStandardListByPageRequest.java
View file @
b491d203
...
...
@@ -20,7 +20,6 @@ public class ReviewStandardListByPageRequest extends PageDomain {
* 大标准ID
*/
@ApiModelProperty
(
"总标准ID"
)
@NotNull
(
message
=
"总标准ID不能为空"
)
private
Long
standardId
;
/**
...
...
quality-review/src/main/java/com/ruoyi/web/response/UseCaseListResponse.java
0 → 100644
View file @
b491d203
package
com
.
ruoyi
.
web
.
response
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"UseCaseListResponse"
,
description
=
"查询标准下测试用例"
)
@Data
public
class
UseCaseListResponse
{
@ApiModelProperty
(
"测试场景"
)
private
String
testScenario
;
@ApiModelProperty
(
"测试方法"
)
private
String
testMethod
;
@ApiModelProperty
(
"用例编号"
)
private
String
displayID
;
@ApiModelProperty
(
"用例名称"
)
private
String
name
;
}
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