From dcc45e31435a95ac0941c652e51d9999e28bf5a6 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Fri, 16 Jul 2021 17:43:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=8D=E5=88=B0=E6=A1=88=E4=BE=8B=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=20(#4769)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复接口测试查询不到案例的缺陷 Co-authored-by: song-tianyang --- .../java/io/metersphere/api/service/ApiTestCaseService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java index 16095961bc..4f14c9fd79 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java @@ -93,13 +93,12 @@ public class ApiTestCaseService { public List list(ApiTestCaseRequest request) { request.setOrders(ServiceUtils.getDefaultOrder(request.getOrders())); - if (request.getModuleIds() == null) { + if (request.getModuleIds() == null && request.getModuleId() != null) { List moduleIds = new ArrayList<>(); moduleIds.add(request.getModuleId()); request.setModuleIds(moduleIds); } List returnList = extApiTestCaseMapper.list(request); - for (ApiTestCaseResult res : returnList) { if (StringUtils.equalsIgnoreCase(res.getApiMethod(), "esb")) { esbApiParamService.handleApiEsbParams(res);