| | |
| | | and mld.host_id = #{host_id} |
| | | </if> |
| | | <if test="loc_no != null and loc_no != ''"> |
| | | and mld.loc_no like concat('%',#{loc_no},'%') |
| | | and ( |
| | | mld.loc_no like concat('%',#{loc_no},'%') |
| | | or exists ( |
| | | select 1 from asr_loc_mast alm |
| | | where alm.loc_no = mld.loc_no |
| | | and alm.loc_alias like concat('%',#{loc_no},'%') |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="locNo != null and locNo != ''"> |
| | | and mld.loc_no like concat('%',#{loc_no},'%') |
| | | and ( |
| | | mld.loc_no like concat('%',#{locNo},'%') |
| | | or exists ( |
| | | select 1 from asr_loc_mast alm |
| | | where alm.loc_no = mld.loc_no |
| | | and alm.loc_alias like concat('%',#{locNo},'%') |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="matnr != null and matnr != ''"> |
| | | and mld.matnr like concat('%',#{matnr},'%') |
| | |
| | | and v.host_id = #{host_id} |
| | | </if> |
| | | <if test="loc_no != null and loc_no != ''"> |
| | | and v.loc_no like concat('%',#{loc_no},'%') |
| | | and ( |
| | | v.loc_no like concat('%',#{loc_no},'%') |
| | | or exists ( |
| | | select 1 from asr_loc_mast alm |
| | | where alm.loc_no = v.loc_no |
| | | and alm.loc_alias like concat('%',#{loc_no},'%') |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="locNo != null and locNo != ''"> |
| | | and v.loc_no like concat('%',#{loc_no},'%') |
| | | and ( |
| | | v.loc_no like concat('%',#{locNo},'%') |
| | | or exists ( |
| | | select 1 from asr_loc_mast alm |
| | | where alm.loc_no = v.loc_no |
| | | and alm.loc_alias like concat('%',#{locNo},'%') |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="matnr != null and matnr != ''"> |
| | | and v.matnr like concat('%',#{matnr},'%') |
| | |
| | | and a.node_id like '%' + #{node_id} + '%' |
| | | </if> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and a.loc_no like '%' + #{loc_no} + '%' |
| | | and ( |
| | | a.loc_no like '%' + #{loc_no} + '%' |
| | | or exists ( |
| | | select 1 from asr_loc_mast alm |
| | | where alm.loc_no = a.loc_no |
| | | and alm.loc_alias like '%' + #{loc_no} + '%' |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and a.matnr like '%' + #{matnr} + '%' |