Commit d13cedd8 authored by 高滢's avatar 高滢

样品管理 分页查询报错修改

parent 3aecfc37
......@@ -7,6 +7,7 @@ import com.ruoyi.domain.Sample;
import com.ruoyi.domain.TestScenario;
import com.ruoyi.service.ITestScenarioService;
import com.ruoyi.web.request.TestScenarioRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
......@@ -20,10 +21,12 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "测试场景")
@RestController
@RequestMapping("/system/scenario")
public class TestScenarioController extends BaseController {
@Autowired
private ITestScenarioService testScenarioService;
......@@ -34,8 +37,8 @@ public class TestScenarioController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/getList")
public TableDataInfo list(@Validated @RequestBody TestScenarioRequest testScenarioRequest){
startPage();
public TableDataInfo<TestScenario> list(@Validated TestScenarioRequest testScenarioRequest){
startPage(testScenarioRequest);
List<TestScenario> list = testScenarioService.selectTestScenarioList(testScenarioRequest);
return getDataTable(list);
}
......
......@@ -34,8 +34,8 @@ public class TestTypeController extends BaseController {
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/getList")
public TableDataInfo list(@Validated @RequestBody TestTypeRequest testTypeRequest){
startPage();
public TableDataInfo<TestType> list(@Validated TestTypeRequest testTypeRequest){
startPage(testTypeRequest);
List<TestType> list = testTypeService.selectTestTypeList(testTypeRequest);
return getDataTable(list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment