insert into scenic(id, `name`, introduction, phone, cover_url, longitude, latitude, radius, province, city, area, address, price, kf_code_url, kf_phone, logo_url, source_video_price, source_image_price) values (#{id}, #{name}, #{introduction}, #{phone}, #{coverUrl},#{longitude}, #{latitude}, #{radius}, #{province}, #{city}, #{area}, #{address}, #{price}, #{kfCodeUrl}, #{kfPhone}, #{logoUrl}, #{sourceVideoPrice}, #{sourceImagePrice}) 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}, status=#{status}, province=#{province}, city=#{city}, area=#{area}, address=#{address}, kf_code_url=#{kfCodeUrl}, kf_phone=#{kfPhone}, logo_url=#{logoUrl}, price=#{price}, source_video_price=#{sourceVideoPrice}, source_image_price=#{sourceImagePrice}, 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}, tour_time=#{tourTime}, sample_store_day=#{sampleStoreDay}, face_store_day=#{faceStoreDay}, 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}, user_source_expire_day=#{userSourceExpireDay}, face_score_threshold=#{faceScoreThreshold}, force_finish_time=#{forceFinishTime}, face_detect_helper_threshold=#{faceDetectHelperThreshold}, store_type=#{storeType}, store_config_json=#{storeConfigJson}, tmp_store_type=#{tmpStoreType}, tmp_store_config_json=#{tmpStoreConfigJson}, local_store_type=#{localStoreType}, local_store_config_json=#{localStoreConfigJson}, broker_direct_rate=#{brokerDirectRate}, watermark_type=#{watermarkType}, watermark_scenic_text=#{watermarkScenicText}, watermark_dt_format=#{watermarkDtFormat}, face_type=#{faceType}, face_config_json=#{faceConfigJson}, pay_type=#{payType}, pay_config_json=#{payConfigJson}, image_source_pack_hint=#{imageSourcePackHint}, video_source_pack_hint=#{videoSourcePackHint}, extra_notification_time=#{extraNotificationTime} where id = #{id} delete from scenic where id = #{id} delete from scenic_config where scenic_id = #{scenicId}