insert into member(id, scenic_id, openid,avatar_url, nickname, real_name, promo_code, broker_id, agreement, phone, country, province, city) values (#{id}, #{scenicId}, #{openId}, #{avatarUrl},#{nickname}, #{realName}, #{promoCode}, #{brokerId}, #{agreement}, #{phone}, #{country}, #{province}, #{city}) insert into scenic_notification(member_id, scenic_id, `status`) values (#{memberId}, #{scenicId}, 1) update member scenicId = #{scenicId}, openid = #{openId}, avatar_url = #{avatarUrl}, nickname = #{nickname}, real_name = #{realName}, promo_code = #{promoCode}, broker_id = #{brokerId}, agreement = #{agreement}, phone = #{phone}, country = #{country}, province = #{province}, city = #{city}, where id = #{id} update scenic_notification set status = ( case status when 0 then 1 when 1 then 0 else status end ) where member_id = #{memberId} and scenic_id = #{scenicId} delete from member where id = #{id}