From 1e47b32bb0d641261ac28e86618eef714585a4f5 Mon Sep 17 00:00:00 2001 From: qiankunpingtai Date: Tue, 14 May 2019 15:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=BF=A1=E6=81=AFsql$?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA#?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper_xml/AppMapperEx.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/resources/mapper_xml/AppMapperEx.xml b/src/main/resources/mapper_xml/AppMapperEx.xml index 8422d73c..8903cb96 100644 --- a/src/main/resources/mapper_xml/AppMapperEx.xml +++ b/src/main/resources/mapper_xml/AppMapperEx.xml @@ -5,11 +5,12 @@ select * FROM jsh_app where 1=1 - - and name like '%${name}%' + + + and name like #{name} - - and type='${type}' + + and type=#{type} and ifnull(delete_Flag,'0') !='1' order by sort asc @@ -22,11 +23,12 @@ COUNT(id) FROM jsh_app WHERE 1=1 - - and name like '%${name}%' + + + and name like #{name} - - and type='${type}' + + and type=#{type} and ifnull(delete_Flag,'0') !='1'