From 02ba09574c65d56afe1dc809418f9b9c1f9f512c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 20 May 2022 17:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=AE=97=E5=8F=8A=E6=88=90=E6=9C=AC?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml | 2 +- .../resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml index 9ac5b5e1..82871f4f 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml @@ -11,7 +11,7 @@ ( #{item}) - and res.product_name like #{key} + and res.product_name like concat('%',#{key} ,'%') and exists( select 1 from xm_iteration ppl where ppl.product_id=res.id and ppl.id=#{linkIterationId} ) diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml index 404933cc..7990e90f 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml @@ -53,7 +53,7 @@ where l.project_id =res.id and ipl.id=#{linkIterationId} ) - and res.name like #{key} + and res.name like concat('%',#{key} ,'%') and (res.branch_id in( #{platformBranchId},#{linkBranchId}) and res.is_tpl='1')