refactor(工作台): 接口定义页面操作列不显示设置
--user=郭雨琦 --bug=1015230 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001015230
This commit is contained in:
parent
d5c34bb99e
commit
1f4ac7fd4f
|
@ -69,6 +69,14 @@ public class ApiTestCaseController {
|
|||
|
||||
@PostMapping("/list/{goPage}/{pageSize}")
|
||||
public Pager<List<ApiTestCaseDTO>> listSimple(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ApiTestCaseRequest request) {
|
||||
if (request.getToBeUpdated() != null && request.getToBeUpdated()) {
|
||||
if (request.getProjectId() != null) {
|
||||
Long toBeUpdatedTime = apiTestCaseService.getToBeUpdatedTime(request.getProjectId());
|
||||
if (toBeUpdatedTime != null) {
|
||||
request.setToBeUpdateTime(toBeUpdatedTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
request.setSelectEnvironment(true);
|
||||
return PageUtils.setPageInfo(page, apiTestCaseService.listSimple(request));
|
||||
|
|
|
@ -146,14 +146,6 @@ public class ApiTestCaseService {
|
|||
|
||||
public List<ApiTestCaseDTO> listSimple(ApiTestCaseRequest request) {
|
||||
request = this.initRequest(request, true, true);
|
||||
if (request.getToBeUpdated() != null && request.getToBeUpdated()) {
|
||||
if (request.getProjectId() != null) {
|
||||
Long toBeUpdatedTime = getToBeUpdatedTime(request.getProjectId());
|
||||
if (toBeUpdatedTime != null) {
|
||||
request.setToBeUpdateTime(toBeUpdatedTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
List<ApiTestCaseDTO> apiTestCases = extApiTestCaseMapper.listSimple(request);
|
||||
if (CollectionUtils.isEmpty(apiTestCases)) {
|
||||
return apiTestCases;
|
||||
|
|
Loading…
Reference in New Issue