@ -46,7 +46,7 @@
wt_sp_allocation wa
JOIN wt_sp_warehouse sw ON wa.OUT_WAREHOUSE_ID = sw.id
<if test="params.code!=null and params.code!=''">
and wa.code = #{params.code}
and wa.code like concat('%',#{params.code},'%')
</if>
<if test="params.status!=null">
and wa.status = #{params.status}
@ -47,7 +47,7 @@
wt_sp_warehouse_in wi
JOIN wt_sp_warehouse sw ON wi.STORAGE_ROOM = sw.id
and wi.code = #{params.code}
and wi.code like concat('%',#{params.code},'%')
<if test="params.type!=null">
and wi.type = #{params.type}
wt_sp_warehouse_out wo
JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id
and wo.code = #{params.code}
and wo.code like concat('%',#{params.code},'%')
and wo.type = #{params.type}