select userid, address, agent_id, amount, anchor_grade, anchor_point, app_version, app_version_code, avatar, award_login_day, birthday, broad_cast, channel_id, charge_show, charm_grade, charm_point, city, city_edit, coin,coin_cash, constellation, consumption, create_time, deal_scale_plan, del_flag, device_id, devote_show, gift_global_broadcast, goodnum, group_id, gs_room_id, gs_room_type, guild_id, head_no, height, hide_distance, invite_code, bind_code, ipaddr, is_anchor_auth, is_automatic, is_join_jg, is_live_account, is_not_disturb, is_ooo_account, is_push, is_recommend, is_show_home_page, is_svip, is_tone, is_youth_model, ishot, isrecord, issuper, iszombie, iszombiep, join_room_show, kick_time, last_game_num, last_login_day, last_login_ip, last_login_time, last_off_line_time, lat, level, live_function, live_status, live_thumb, live_thumbs, lng, lock_reason, lock_time, login_type, manager_co_id, manager_id, max_sign_count, mobile, nickname, noble_grade, online_status, ooo_home_page_sort_no, ooo_live_status, ooo_two_classify_id, open_live_zombie_num, openid, opt_user_name, password, phone_firm, phone_model, phone_system, phone_uuid, pid, portrait, poster, province, push_platform, push_register_id, read_short_video_number, reg_type, register_ip, role, room_id, room_title, room_type, room_type_val, salt, sanwei, score, sex, sign_count, sign_time, signature, sms_region, source, star_id, status, total_amount, total_amount_cash, total_cash, total_charge, unionid, update_pwd_time, user_activation_key, user_email, user_grade, user_point, user_set_online_status, user_type, user_url, username, video, video_coin, video_img, vocation, voice, voice_coin, voice_status, voip_token, votes, votestotal, wealth_grade, wechat, weight, whether_enable_positioning_show, youth_password, zombie_max_num, zombie_ratio, agent_grade, live_divided_into, game_divided_into, invite_bind_time, fund_password, diamond_coin,diamond_coin_cash, diamond_coin_total, diamond_coin_cash_total,withdraw_able,withdraw from app_user
insert into app_user
userid,
address,
agent_id,
amount,
anchor_grade,
anchor_point,
app_version,
app_version_code,
avatar,
award_login_day,
birthday,
broad_cast,
channel_id,
charge_show,
charm_grade,
charm_point,
city,
city_edit,
coin,
coin_cash,
constellation,
consumption,
create_time,
deal_scale_plan,
del_flag,
device_id,
devote_show,
gift_global_broadcast,
goodnum,
group_id,
gs_room_id,
gs_room_type,
guild_id,
head_no,
height,
hide_distance,
invite_code,
bind_code,
ipaddr,
is_anchor_auth,
is_automatic,
is_join_jg,
is_live_account,
is_not_disturb,
is_ooo_account,
is_push,
is_recommend,
is_show_home_page,
is_svip,
is_tone,
is_youth_model,
ishot,
isrecord,
issuper,
iszombie,
iszombiep,
join_room_show,
kick_time,
last_game_num,
last_login_day,
last_login_ip,
last_login_time,
last_off_line_time,
lat,
level,
live_function,
live_status,
live_thumb,
live_thumbs,
lng,
lock_reason,
lock_time,
login_type,
manager_co_id,
manager_id,
max_sign_count,
mobile,
nickname,
noble_grade,
online_status,
ooo_home_page_sort_no,
ooo_live_status,
ooo_two_classify_id,
open_live_zombie_num,
openid,
opt_user_name,
password,
phone_firm,
phone_model,
phone_system,
phone_uuid,
pid,
portrait,
poster,
province,
push_platform,
push_register_id,
read_short_video_number,
reg_type,
register_ip,
role,
room_id,
room_title,
room_type,
room_type_val,
salt,
sanwei,
score,
sex,
sign_count,
sign_time,
signature,
sms_region,
source,
star_id,
status,
total_amount,
total_amount_cash,
total_cash,
total_charge,
unionid,
update_pwd_time,
user_activation_key,
user_email,
user_grade,
user_point,
user_set_online_status,
user_type,
user_url,
username,
video,
video_coin,
video_img,
vocation,
voice,
voice_coin,
voice_status,
voip_token,
votes,
votestotal,
wealth_grade,
wechat,
weight,
whether_enable_positioning_show,
youth_password,
zombie_max_num,
zombie_ratio,
agent_grade,
live_divided_into,
game_divided_into,
invite_bind_time,
fund_password,
diamond_coin,
diamond_coin_cash,
diamond_coin_total,
diamond_coin_cash_total,
agent_flag,
withdraw_able,
withdraw,
#{userid},
#{address},
#{agentId},
#{amount},
#{anchorGrade},
#{anchorPoint},
#{appVersion},
#{appVersionCode},
#{avatar},
#{awardLoginDay},
#{birthday},
#{broadCast},
#{channelId},
#{chargeShow},
#{charmGrade},
#{charmPoint},
#{city},
#{cityEdit},
#{coin},
#{coin_cash},
#{constellation},
#{consumption},
#{createTime},
#{dealScalePlan},
#{delFlag},
#{deviceId},
#{devoteShow},
#{giftGlobalBroadcast},
#{goodnum},
#{groupId},
#{gsRoomId},
#{gsRoomType},
#{guildId},
#{headNo},
#{height},
#{hideDistance},
#{inviteCode},
#{bindCode},
#{ipaddr},
#{isAnchorAuth},
#{isAutomatic},
#{isJoinJg},
#{isLiveAccount},
#{isNotDisturb},
#{isOooAccount},
#{isPush},
#{isRecommend},
#{isShowHomePage},
#{isSvip},
#{isTone},
#{isYouthModel},
#{ishot},
#{isrecord},
#{issuper},
#{iszombie},
#{iszombiep},
#{joinRoomShow},
#{kickTime},
#{lastGameNum},
#{lastLoginDay},
#{lastLoginIp},
#{lastLoginTime},
#{lastOffLineTime},
#{lat},
#{level},
#{liveFunction},
#{liveStatus},
#{liveThumb},
#{liveThumbs},
#{lng},
#{lockReason},
#{lockTime},
#{loginType},
#{managerCoId},
#{managerId},
#{maxSignCount},
#{mobile},
#{nickname},
#{nobleGrade},
#{onlineStatus},
#{oooHomePageSortNo},
#{oooLiveStatus},
#{oooTwoClassifyId},
#{openLiveZombieNum},
#{openid},
#{optUserName},
#{password},
#{phoneFirm},
#{phoneModel},
#{phoneSystem},
#{phoneUuid},
#{pid},
#{portrait},
#{poster},
#{province},
#{pushPlatform},
#{pushRegisterId},
#{readShortVideoNumber},
#{regType},
#{registerIp},
#{role},
#{roomId},
#{roomTitle},
#{roomType},
#{roomTypeVal},
#{salt},
#{sanwei},
#{score},
#{sex},
#{signCount},
#{signTime},
#{signature},
#{smsRegion},
#{source},
#{starId},
#{status},
#{totalAmount},
#{totalAmountCash},
#{totalCash},
#{totalCharge},
#{unionid},
#{updatePwdTime},
#{userActivationKey},
#{userEmail},
#{userGrade},
#{userPoint},
#{userSetOnlineStatus},
#{userType},
#{userUrl},
#{username},
#{video},
#{videoCoin},
#{videoImg},
#{vocation},
#{voice},
#{voiceCoin},
#{voiceStatus},
#{voipToken},
#{votes},
#{votestotal},
#{wealthGrade},
#{wechat},
#{weight},
#{whetherEnablePositioningShow},
#{youthPassword},
#{zombieMaxNum},
#{zombieRatio},
#{agentGrade},
#{liveDividedInto},
#{gameDividedInto},
#{inviteBindTime},
#{fundPassword},
#{diamondCoin},
#{diamondCoinCash},
#{diamondCoinTotal},
#{diamondCoinCashTotal},
#{agentFlag},
#{withdrawAble},
#{withdraw},
update app_user
address = #{address},
agent_id = #{agentId},
amount = #{amount},
anchor_grade = #{anchorGrade},
anchor_point = #{anchorPoint},
app_version = #{appVersion},
app_version_code = #{appVersionCode},
avatar = #{avatar},
award_login_day = #{awardLoginDay},
birthday = #{birthday},
broad_cast = #{broadCast},
channel_id = #{channelId},
charge_show = #{chargeShow},
charm_grade = #{charmGrade},
charm_point = #{charmPoint},
city = #{city},
city_edit = #{cityEdit},
coin = #{coin},
coin_cash = #{coinCash},
constellation = #{constellation},
consumption = #{consumption},
create_time = #{createTime},
deal_scale_plan = #{dealScalePlan},
del_flag = #{delFlag},
device_id = #{deviceId},
devote_show = #{devoteShow},
gift_global_broadcast = #{giftGlobalBroadcast},
goodnum = #{goodnum},
group_id = #{groupId},
gs_room_id = #{gsRoomId},
gs_room_type = #{gsRoomType},
guild_id = #{guildId},
head_no = #{headNo},
height = #{height},
hide_distance = #{hideDistance},
invite_code = #{inviteCode},
bind_code = #{bindCode},
ipaddr = #{ipaddr},
is_anchor_auth = #{isAnchorAuth},
is_automatic = #{isAutomatic},
is_join_jg = #{isJoinJg},
is_live_account = #{isLiveAccount},
is_not_disturb = #{isNotDisturb},
is_ooo_account = #{isOooAccount},
is_push = #{isPush},
is_recommend = #{isRecommend},
is_show_home_page = #{isShowHomePage},
is_svip = #{isSvip},
is_tone = #{isTone},
is_youth_model = #{isYouthModel},
ishot = #{ishot},
isrecord = #{isrecord},
issuper = #{issuper},
iszombie = #{iszombie},
iszombiep = #{iszombiep},
join_room_show = #{joinRoomShow},
kick_time = #{kickTime},
last_game_num = #{lastGameNum},
last_login_day = #{lastLoginDay},
last_login_ip = #{lastLoginIp},
last_login_time = #{lastLoginTime},
last_off_line_time = #{lastOffLineTime},
lat = #{lat},
level = #{level},
live_function = #{liveFunction},
live_status = #{liveStatus},
live_thumb = #{liveThumb},
live_thumbs = #{liveThumbs},
lng = #{lng},
lock_reason = #{lockReason},
lock_time = #{lockTime},
login_type = #{loginType},
manager_co_id = #{managerCoId},
manager_id = #{managerId},
max_sign_count = #{maxSignCount},
mobile = #{mobile},
nickname = #{nickname},
noble_grade = #{nobleGrade},
online_status = #{onlineStatus},
ooo_home_page_sort_no = #{oooHomePageSortNo},
ooo_live_status = #{oooLiveStatus},
ooo_two_classify_id = #{oooTwoClassifyId},
open_live_zombie_num = #{openLiveZombieNum},
openid = #{openid},
opt_user_name = #{optUserName},
password = #{password},
phone_firm = #{phoneFirm},
phone_model = #{phoneModel},
phone_system = #{phoneSystem},
phone_uuid = #{phoneUuid},
pid = #{pid},
portrait = #{portrait},
poster = #{poster},
province = #{province},
push_platform = #{pushPlatform},
push_register_id = #{pushRegisterId},
read_short_video_number = #{readShortVideoNumber},
reg_type = #{regType},
register_ip = #{registerIp},
role = #{role},
room_id = #{roomId},
room_title = #{roomTitle},
room_type = #{roomType},
room_type_val = #{roomTypeVal},
salt = #{salt},
sanwei = #{sanwei},
score = #{score},
sex = #{sex},
sign_count = #{signCount},
sign_time = #{signTime},
signature = #{signature},
sms_region = #{smsRegion},
source = #{source},
star_id = #{starId},
status = #{status},
total_amount = #{totalAmount},
total_amount_cash = #{totalAmountCash},
total_cash = #{totalCash},
total_charge = #{totalCharge},
unionid = #{unionid},
update_pwd_time = #{updatePwdTime},
user_activation_key = #{userActivationKey},
user_email = #{userEmail},
user_grade = #{userGrade},
user_point = #{userPoint},
user_set_online_status = #{userSetOnlineStatus},
user_type = #{userType},
user_url = #{userUrl},
username = #{username},
video = #{video},
video_coin = #{videoCoin},
video_img = #{videoImg},
vocation = #{vocation},
voice = #{voice},
voice_coin = #{voiceCoin},
voice_status = #{voiceStatus},
voip_token = #{voipToken},
votes = #{votes},
votestotal = #{votestotal},
wealth_grade = #{wealthGrade},
wechat = #{wechat},
weight = #{weight},
whether_enable_positioning_show = #{whetherEnablePositioningShow},
youth_password = #{youthPassword},
zombie_max_num = #{zombieMaxNum},
zombie_ratio = #{zombieRatio},
agent_grade = #{agentGrade},
live_divided_into = #{liveDividedInto},
game_divided_into = #{gameDividedInto},
invite_bind_time = #{inviteBindTime},
fund_password = #{fundPassword},
diamond_coin = #{diamondCoin},
diamond_coin_cash = #{diamondCoinCash},
diamond_coin_total = #{diamondCoinTotal},
diamond_coin_cash_total = #{diamondCoinCashTotal},
agent_flag = #{agentFlag},
withdraw_able = #{withdrawAble},
withdraw = #{withdraw},
where userid = #{userid}
delete from app_user where userid = #{userid}
delete from app_user where userid in
#{userid}
update app_user
coin = coin + #{coin},
coin_cash = coin_cash + #{coinCash},
diamond_coin = diamond_coin + #{diamondCoin},
diamond_coin_cash = diamond_coin_cash + #{diamondCoinCash},
diamond_coin_total = diamond_coin_total + #{diamondCoinTotal},
withdraw = withdraw + #{withdraw},
withdraw_able = withdraw_able + #{withdrawAble},
where userid = #{userid}