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