and mld.loc_no like concat('%',#{loc_no},'%')
and mld.matnr like concat('%',#{matnr},'%')
and mld.maktx like concat('%',#{maktx},'%')
and mld.update_time between #{startTime} and #{endTime}
update man_loc_detl
set anfme = anfme - #{anfme}
where 1=1
and node_id = #{nodeId}
and matnr = #{matnr}
delete from man_loc_detl
where 1=1
and node_id = #{nodeId}
and matnr = #{matnr}