and batch = #{batch}
and (batch IS NULL OR batch = '')
and a.loc_no like '%' + #{loc_no} + '%'
and a.matnr like '%' + #{matnr} + '%'
and a.maktx like '%' + #{maktx} + '%'
and a.anfme like '%' + #{anfme} + '%'
and a.modi_time between #{startTime} and #{endTime}