From 1b3f739f266d6d4bae29203f3222d5dc45d291a0 Mon Sep 17 00:00:00 2001 From: xiajunjie <752696511@qq.com> Date: Wed, 19 May 2021 22:31:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=E8=8E=B7=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90Mapper=20SQL=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/base/mapper/ext/ExtDataSourceMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSourceMapper.xml b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSourceMapper.xml index 2aa2a6c9ee..4178d702c5 100644 --- a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSourceMapper.xml +++ b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSourceMapper.xml @@ -27,12 +27,12 @@ select id , name , `desc` ,`type` , configuration ,create_time ,update_time from (select GET_V_AUTH_MODEL_ID_P_USE (#{userId}, 'link') cids) t,datasource - FIND_IN_SET(datasource.id,cids)) + FIND_IN_SET(datasource.id,cids) id = #{id,jdbcType=VARCHAR} - `name` = concat('%',#{name,jdbcType=VARCHAR},'%') + `name` like concat('%',#{name,jdbcType=VARCHAR},'%') `desc` = #{desc,jdbcType=VARCHAR}