and mld.host_id = #{host_id} and mld.loc_no like concat('%',#{loc_no},'%') 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} and v.host_id = #{host_id} and v.loc_no like concat('%',#{loc_no},'%') and v.loc_no like concat('%',#{loc_no},'%') and v.matnr like concat('%',#{matnr},'%') and v.maktx like concat('%',#{maktx},'%') and v.update_time between #{startTime} and #{endTime} update man_loc_detl set anfme = anfme - #{anfme} , update_time = getdate() where 1=1 and node_id = #{nodeId} and matnr = #{matnr} update man_loc_detl set anfme = anfme + #{anfme} , update_time = getdate() 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} and a.host_id = #{host_id} and a.node_id like '%' + #{node_id} + '%' and a.loc_no like '%' + #{loc_no} + '%' and a.matnr like '%' + #{matnr} + '%' and a.maktx like '%' + #{maktx} + '%' update man_loc_detl set loc_no = #{locNo} where node_id = #{nodeId} delete from man_loc_detl where loc_no = #{locNo} and matnr = #{matnr} update man_loc_detl set anfme = #{anfme} where node_id = #{nodeId} ;