select windplant_no, project_no, collectorwire_no, wtg_no, wtg_issue from wf_project_cw_wtg insert into wf_project_cw_wtg windplant_no, project_no, collectorwire_no, wtg_no, wtg_issue, #{windplantNo}, #{projectNo}, #{collectorwireNo}, #{wtgNo}, #{wtgIssue}, insert into wf_project_cw_wtg(wtg_no, windplant_no, project_no, collectorwire_no) SELECT #{item.wtgNo}, #{item.windplantNo}, #{item.projectNo}, #{item.collectorwireNo} FROM DUAL update wf_project_cw_wtg windplant_no = #{windplantNo}, project_no = #{projectNo}, collectorwire_no = #{collectorwireNo}, wtg_issue = #{wtgIssue}, where wtg_no = #{wtgNo} delete from wf_project_cw_wtg where wtg_no = #{wtgNo} delete from wf_project_cw_wtg where wtg_no in #{wtgNo} delete from wf_project_cw_wtg where windplant_no = #{windplantNo} delete from wf_project_cw_wtg where windplant_no = #{windplantNo} and project_no = #{projectNo} delete from wf_project_cw_wtg where windplant_no = #{windplantNo} and project_no = #{projectNo} and collectorwire_no = #{collectorwireNo}