应用信息sql$修改为#
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user