应用信息sql$修改为#

This commit is contained in:
qiankunpingtai
2019-05-14 15:58:26 +08:00
parent e86c84b22e
commit 1e47b32bb0

View File

@@ -5,11 +5,12 @@
select *
FROM jsh_app
where 1=1
<if test="name != null">
and name like '%${name}%'
<if test="name != null and name != ''">
<bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if>
<if test="type != null">
and type='${type}'
<if test="type != null and type != ''">
and type=#{type}
</if>
and ifnull(delete_Flag,'0') !='1'
order by sort asc
@@ -22,11 +23,12 @@
COUNT(id)
FROM jsh_app
WHERE 1=1
<if test="name != null">
and name like '%${name}%'
<if test="name != null and name != ''">
<bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if>
<if test="type != null">
and type='${type}'
<if test="type != null and type != ''">
and type=#{type}
</if>
and ifnull(delete_Flag,'0') !='1'
</select>