From 29d4e4ebe168f1404b48ad6694bc1c3432a9a6a2 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 27 Apr 2021 17:25:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=97=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/service/ApiDefinitionService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {