and asr_loc_mast.loc_no like '%' + #{loc_no} + '%' and specs like '%' + #{specs} + '%' and matnr like '%' + #{matnr} + '%' and stay_time > #{stay_time} and (maktx like '%' + #{maktx} + '%' or lgnum like '%' + #{maktx} + '%' or tbnum like '%' + #{maktx} + '%' or tbpos like '%' + #{maktx} + '%' or zmatid like '%' + #{maktx} + '%' or werks like '%' + #{maktx} + '%' or anfme like '%' + #{maktx} + '%' or altme like '%' + #{maktx} + '%' or zpallet like '%' + #{maktx} + '%' or bname like '%' + #{maktx} + '%' ) = #{begin_date} ]]> and loc_no like '%' + #{loc_no} + '%' and floor = #{floor} and loc_type1 = #{locType1} and lev1 = #{lev1} and matnr like '%' + #{matnr} + '%' and stay_time > #{stay_time} and (maktx like '%' + #{maktx} + '%' ) = #{begin_date} ]]>