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
d13cedd8
Commit
d13cedd8
authored
Feb 22, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品管理 分页查询报错修改
parent
3aecfc37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
TestScenarioController.java
...w/src/main/java/com/ruoyi/web/TestScenarioController.java
+6
-3
TestTypeController.java
...eview/src/main/java/com/ruoyi/web/TestTypeController.java
+2
-2
No files found.
quality-review/src/main/java/com/ruoyi/web/TestScenarioController.java
View file @
d13cedd8
...
@@ -7,6 +7,7 @@ import com.ruoyi.domain.Sample;
...
@@ -7,6 +7,7 @@ import com.ruoyi.domain.Sample;
import
com.ruoyi.domain.TestScenario
;
import
com.ruoyi.domain.TestScenario
;
import
com.ruoyi.service.ITestScenarioService
;
import
com.ruoyi.service.ITestScenarioService
;
import
com.ruoyi.web.request.TestScenarioRequest
;
import
com.ruoyi.web.request.TestScenarioRequest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tags
;
import
org.apache.skywalking.apm.toolkit.trace.Tags
;
...
@@ -20,10 +21,12 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -20,10 +21,12 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.List
;
import
java.util.List
;
@Api
(
tags
=
"测试场景"
)
@RestController
@RestController
@RequestMapping
(
"/system/scenario"
)
@RequestMapping
(
"/system/scenario"
)
public
class
TestScenarioController
extends
BaseController
{
public
class
TestScenarioController
extends
BaseController
{
@Autowired
@Autowired
private
ITestScenarioService
testScenarioService
;
private
ITestScenarioService
testScenarioService
;
...
@@ -34,8 +37,8 @@ public class TestScenarioController extends BaseController {
...
@@ -34,8 +37,8 @@ public class TestScenarioController extends BaseController {
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getList"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getList"
)
public
TableDataInfo
list
(
@Validated
@RequestBody
TestScenarioRequest
testScenarioRequest
){
public
TableDataInfo
<
TestScenario
>
list
(
@Validated
TestScenarioRequest
testScenarioRequest
){
startPage
();
startPage
(
testScenarioRequest
);
List
<
TestScenario
>
list
=
testScenarioService
.
selectTestScenarioList
(
testScenarioRequest
);
List
<
TestScenario
>
list
=
testScenarioService
.
selectTestScenarioList
(
testScenarioRequest
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/TestTypeController.java
View file @
d13cedd8
...
@@ -34,8 +34,8 @@ public class TestTypeController extends BaseController {
...
@@ -34,8 +34,8 @@ public class TestTypeController extends BaseController {
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getList"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getList"
)
public
TableDataInfo
list
(
@Validated
@RequestBody
TestTypeRequest
testTypeRequest
){
public
TableDataInfo
<
TestType
>
list
(
@Validated
TestTypeRequest
testTypeRequest
){
startPage
();
startPage
(
testTypeRequest
);
List
<
TestType
>
list
=
testTypeService
.
selectTestTypeList
(
testTypeRequest
);
List
<
TestType
>
list
=
testTypeService
.
selectTestTypeList
(
testTypeRequest
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
...
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