Commit 0774eee2 by anxiaohe

修改台账xml

parent a9948db2
...@@ -52,12 +52,7 @@ ...@@ -52,12 +52,7 @@
<if test="type != null and type.id != null and type.id != ''"> <if test="type != null and type.id != null and type.id != ''">
AND a.type_id = #{type.id} AND a.type_id = #{type.id}
</if> </if>
<if test="model != null and model != ''">
AND a.model LIKE
<if test="dbName == 'oracle'">'%'||#{model}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{model}+'%'</if>
<if test="dbName == 'mysql'">concat('%',#{model},'%')</if>
</if>
<if test="shelvesIds != null and shelvesIds != ''"> <if test="shelvesIds != null and shelvesIds != ''">
AND a.shelvesids LIKE AND a.shelvesids LIKE
<if test="dbName == 'oracle'">'%'||#{shelvesIds}||'%'</if> <if test="dbName == 'oracle'">'%'||#{shelvesIds}||'%'</if>
...@@ -178,4 +173,4 @@ ...@@ -178,4 +173,4 @@
where li.ledger_id = #{id} where li.ledger_id = #{id}
and li.del_flag = '0' and li.del_flag = '0'
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment