|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | left join asr_loc_mast b on a.loc_no = b.loc_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and b.loc_sts = 'F' and b.frozen != 1 | 
|---|
|  |  |  | and a.manu is null | 
|---|
|  |  |  | and a.matnr = #{matnr} | 
|---|
|  |  |  | <choose> | 
|---|
|  |  |  | <when test="batch != null and batch != ''"> | 
|---|