|  |  |  | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="param!=null and param.size()>0"> | 
|---|
|  |  |  | <foreach item="item" collection="param" index="index"> | 
|---|
|  |  |  | <if test="item.value!=null"> | 
|---|
|  |  |  | and ${item.name} = #{item.value} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getListLike" resultType="map"> | 
|---|
|  |  |  | select * from view_man_loc_detl ld | 
|---|
|  |  |  | where matnr = #{matnr} | 
|---|
|  |  |  | <if test="batch!=null"> | 
|---|
|  |  |  | and batch = #{batch} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="param!=null and param.size()>0"> | 
|---|
|  |  |  | <foreach item="item" collection="param" index="index"> | 
|---|
|  |  |  | and ${item.name} like CONCAT('%',#{item.value},'%') | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | </if> | 
|---|