refactor(工作台): 接口定义页面操作列不显示设置

--user=郭雨琦
--bug=1015230
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001015230
This commit is contained in:
guoyuqi 2022-07-23 14:06:07 +08:00 committed by xiaomeinvG
parent d5c34bb99e
commit 1f4ac7fd4f
2 changed files with 8 additions and 8 deletions

View File

@ -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));

View File

@ -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;