From 36b99467e554c1dcd05f734aea8eabdf6d7a7e7e Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 25 Oct 2021 11:31:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=97=B6=EF=BC=8C=E6=A0=B9=E6=8D=AEid=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1007388 --user=lyh 【github#6953】测试计划中,关联接口测试用例时,根据id搜索测试用例不生效 https://www.tapd.cn/55049933/s/1058252 --- .../metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml index 68035a31e5..ed51b38e8a 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml @@ -74,7 +74,10 @@ - and (c.name like CONCAT('%', #{request.name},'%') or c.tags like CONCAT('%', #{request.name},'%')) + and (c.name like CONCAT('%', #{request.name},'%') + or c.tags like CONCAT('%', #{request.name},'%') + or c.num like CONCAT('%', #{request.name},'%') + ) and a.module_id in