diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 51d4720c5a..0ac24721ff 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -99,7 +99,7 @@ public class ApiDefinitionService { @Resource ApiModuleMapper apiModuleMapper; @Resource - private SystemParameterService systemParameterService ; + private SystemParameterService systemParameterService; private static Cache cache = Cache.newHardMemoryCache(0, 3600 * 24); @@ -116,7 +116,7 @@ public class ApiDefinitionService { ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiDefinitionMapper.selectIds(query)); List resList = extApiDefinitionMapper.listByIds(request.getIds()); - calculateResult(resList); + calculateResult(resList, request.getProjectId()); return resList; } @@ -366,7 +366,7 @@ public class ApiDefinitionService { BeanUtils.copyBean(saveReq, apiDefinition); apiDefinition.setCreateTime(System.currentTimeMillis()); apiDefinition.setUpdateTime(System.currentTimeMillis()); - if(StringUtils.isEmpty(apiDefinition.getStatus())) { + if (StringUtils.isEmpty(apiDefinition.getStatus())) { apiDefinition.setStatus(APITestStatus.Underway.name()); } if (apiDefinition.getUserId() == null) {