insert into scenic(id, `name`, introduction, phone, cover_url, longitude, latitude, radius, province, city, area, address, price, kf_code_url, kf_phone, logo_url) values (#{id}, #{name}, #{introduction}, #{phone}, #{coverUrl},#{longitude}, #{latitude}, #{radius}, #{province}, #{city}, #{area}, #{address}, #{price}, #{kfCodeUrl}, #{kfPhone}, #{logoUrl}) insert into scenic_config(id, scenic_id, create_time) values (#{id}, #{scenicId}, now()) update scenic `name`=#{name}, `phone`=#{phone}, introduction=#{introduction}, cover_url=#{coverUrl}, longitude=#{longitude}, latitude=#{latitude}, radius=#{radius}, province=#{province}, city=#{city}, area=#{area}, address=#{address}, kf_code_url=#{kfCodeUrl}, kf_phone=#{kfPhone}, logo_url=#{logoUrl}, price=#{price}, where id = #{id} update scenic set status = (CASE status WHEN 1 THEN 0 WHEN 0 THEN 1 END) where id = #{id} update scenic_config start_time=#{startTime}, end_time=#{endTime}, is_default=#{isDefault}, all_free=#{allFree}, book_routine=#{bookRoutine}, sample_store_day=#{sampleStoreDay}, video_store_day=#{videoStoreDay}, template_new_video_type=#{templateNewVideoType}, anti_screen_record_type=#{antiScreenRecordType}, disable_source_video=#{disableSourceVideo}, disable_source_image=#{disableSourceImage}, video_source_store_day=#{videoSourceStoreDay}, image_source_store_day=#{imageSourceStoreDay} where id = #{id} delete from scenic where id = #{id} delete from scenic_config where scenic_id = #{scenicId}