SELECT a.id, a.dept_id, a.scenic_name, a.address, a.coordinate, a.scenic_level, a.adjust, a.official_phone, a.image, a.blurb, a.reachinfo, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.audio_guide_url, a.image_page, a.area_city, d.dept_name, a.logo, a.recommend, a.text_type, a.complaint_phone, a.flag, a.pft_id FROM zdy_scenic a LEFT JOIN sys_dept d ON d.dept_id = a.dept_id insert into zdy_scenic dept_id, scenic_name, address, coordinate, scenic_level, adjust, official_phone, image, blurb, reachinfo, create_by, audio_guide_url, image_page, area_city, logo, complaint_phone, text_type, flag, pft_id, del_flag, create_time, #{deptId}, #{scenicName}, #{address}, #{coordinate}, #{scenicLevel}, #{adjust}, #{officialPhone}, #{image}, #{blurb}, #{reachinfo}, #{createBy}, #{audioGuideUrl}, #{imagePage}, #{areaCity}, #{logo}, #{complaintPhone}, #{textType}, #{flag}, #{pftId}, '0', sysdate(), update zdy_scenic dept_id = #{deptId}, scenic_name = #{scenicName}, address = #{address}, coordinate = #{coordinate}, scenic_level = #{scenicLevel}, adjust = #{adjust}, official_phone = #{officialPhone}, image = #{image}, blurb = #{blurb}, reachinfo = #{reachinfo}, update_by = #{updateBy}, audio_guide_url = #{audioGuideUrl}, image_page = #{imagePage}, area_city = #{areaCity}, logo = #{logo}, complaint_phone = #{complaintPhone}, text_type = #{textType}, flag = #{flag}, pft_id = #{pftId}, update_time = sysdate(), where id = #{id} update zdy_scenic set del_flag = '1' where id = #{id} update zdy_scenic set del_flag = '1' where id in #{id} update zdy_scenic scenic_name = #{scenicName}, address = #{address}, coordinate = #{coordinate}, scenic_level = #{scenicLevel}, adjust = #{adjust}, official_phone = #{officialPhone}, image = #{image}, blurb = #{blurb}, reachinfo = #{reachinfo}, update_by = #{updateBy}, update_time = sysdate(), where dept_id = #{deptId}