仓库信息sql$修改为#

This commit is contained in:
qiankunpingtai
2019-05-14 16:22:26 +08:00
parent 7a34d84e32
commit ebf5792042
13 changed files with 177 additions and 127 deletions

View File

@@ -5,14 +5,16 @@
select *
FROM jsh_inoutitem
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}'
and type=#{type}
</if>
<if test="remark != null">
and remark like '%${remark}%'
<if test="remark != null and remark != ''">
<bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if>
and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null">
@@ -24,14 +26,16 @@
COUNT(id)
FROM jsh_inoutitem
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}'
and type=#{type}
</if>
<if test="remark != null">
and remark like '%${remark}%'
<if test="remark != null and remark != ''">
<bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if>
and ifnull(delete_Flag,'0') !='1'
</select>