SELECT a.id, a.dept_id, a.scenic_code, a.scenic_name, a.flag, a.tag, a.adjust, a.image, a.blurb, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.scenic_id, a.sort, a.location, a.audio_guide_url, a.video_url, a.ar_vr_content_ul, a.address, a.image21, a.image43, a.subtitle, a.share_qrcode_url, a.status, a.audio_charge, a.audio_price, a.audio_guide_time_length, scenic.scenic_name AS scenicAreaName FROM zdy_scenic_spot a LEFT JOIN zdy_scenic scenic ON scenic.id = a.scenic_id insert into zdy_scenic_spot dept_id, scenic_code, scenic_name, adjust, image, blurb, create_by, create_time, update_by, update_time, del_flag, flag, tag, scenic_id, sort, location, audio_guide_url, video_url, ar_vr_content_ul, address, image21, image43, subtitle, share_qrcode_url, status, audio_charge, audio_price, audio_guide_time_length, #{deptId}, #{scenicCode}, #{scenicName}, #{adjust}, #{image}, #{blurb}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{delFlag}, #{flag}, #{tag}, #{scenicId}, #{sort}, #{location}, #{audioGuideUrl}, #{videoUrl}, #{arVrContentUl}, #{address}, #{image21}, #{image43}, #{subtitle}, #{shareQrcodeUrl}, #{status}, #{audioCharge}, #{audioPrice}, #{audioGuideTimeLength}, update zdy_scenic_spot dept_id = #{deptId}, scenic_code = #{scenicCode}, scenic_name = #{scenicName}, adjust = #{adjust}, image = #{image}, blurb = #{blurb}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, del_flag = #{delFlag}, flag = #{flag}, tag = #{tag}, scenic_id = #{scenicId}, sort = #{sort}, location = #{location}, audio_guide_url = #{audioGuideUrl}, video_url = #{videoUrl}, ar_vr_content_ul = #{arVrContentUl}, address = #{address}, image21 = #{image21}, image43 = #{image43}, subtitle = #{subtitle}, share_qrcode_url = #{shareQrcodeUrl}, status = #{status}, audio_charge = #{audioCharge}, audio_price = #{audioPrice}, audio_guide_time_length = #{audioGuideTimeLength}, where id = #{id} delete from zdy_scenic_spot where id = #{id} delete from zdy_scenic_spot where id in #{id}