SELECT LAST_INSERT_ID()
insert into account (phone, erban_no, password,
netease_token, state, last_login_time,
last_login_ip, register_ip, weixin_openid,
weixin_unionid, qq_openid, qq_unionid,
os, osVersion, app,
imei, channel, linkedme_channel,
isp_type, net_type, model,
device_id, app_version, acc_block_start_time,
acc_block_end_time, device_block_start_time,
device_block_end_time, sign_time, update_time
)
values (#{phone,jdbcType=VARCHAR}, #{erbanNo,jdbcType=BIGINT}, #{password,jdbcType=VARCHAR},
#{neteaseToken,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=TIMESTAMP},
#{lastLoginIp,jdbcType=VARCHAR}, #{registerIp,jdbcType=VARCHAR}, #{weixinOpenid,jdbcType=VARCHAR},
#{weixinUnionid,jdbcType=VARCHAR}, #{qqOpenid,jdbcType=VARCHAR}, #{qqUnionid,jdbcType=VARCHAR},
#{os,jdbcType=VARCHAR}, #{osversion,jdbcType=VARCHAR}, #{app,jdbcType=VARCHAR},
#{imei,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{linkedmeChannel,jdbcType=VARCHAR},
#{ispType,jdbcType=VARCHAR}, #{netType,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
#{deviceId,jdbcType=VARCHAR}, #{appVersion,jdbcType=VARCHAR}, #{accBlockStartTime,jdbcType=TIMESTAMP},
#{accBlockEndTime,jdbcType=TIMESTAMP}, #{deviceBlockStartTime,jdbcType=TIMESTAMP},
#{deviceBlockEndTime,jdbcType=TIMESTAMP}, #{signTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into account
phone,
erban_no,
password,
netease_token,
state,
last_login_time,
last_login_ip,
register_ip,
weixin_openid,
weixin_unionid,
qq_openid,
qq_unionid,
os,
osVersion,
app,
imei,
channel,
linkedme_channel,
isp_type,
net_type,
model,
device_id,
app_version,
acc_block_start_time,
acc_block_end_time,
device_block_start_time,
device_block_end_time,
sign_time,
update_time,
#{phone,jdbcType=VARCHAR},
#{erbanNo,jdbcType=BIGINT},
#{password,jdbcType=VARCHAR},
#{neteaseToken,jdbcType=VARCHAR},
#{state,jdbcType=VARCHAR},
#{lastLoginTime,jdbcType=TIMESTAMP},
#{lastLoginIp,jdbcType=VARCHAR},
#{registerIp,jdbcType=VARCHAR},
#{weixinOpenid,jdbcType=VARCHAR},
#{weixinUnionid,jdbcType=VARCHAR},
#{qqOpenid,jdbcType=VARCHAR},
#{qqUnionid,jdbcType=VARCHAR},
#{os,jdbcType=VARCHAR},
#{osversion,jdbcType=VARCHAR},
#{app,jdbcType=VARCHAR},
#{imei,jdbcType=VARCHAR},
#{channel,jdbcType=VARCHAR},
#{linkedmeChannel,jdbcType=VARCHAR},
#{ispType,jdbcType=VARCHAR},
#{netType,jdbcType=VARCHAR},
#{model,jdbcType=VARCHAR},
#{deviceId,jdbcType=VARCHAR},
#{appVersion,jdbcType=VARCHAR},
#{accBlockStartTime,jdbcType=TIMESTAMP},
#{accBlockEndTime,jdbcType=TIMESTAMP},
#{deviceBlockStartTime,jdbcType=TIMESTAMP},
#{deviceBlockEndTime,jdbcType=TIMESTAMP},
#{signTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
update account
phone = #{phone,jdbcType=VARCHAR},
erban_no = #{erbanNo,jdbcType=BIGINT},
password = #{password,jdbcType=VARCHAR},
netease_token = #{neteaseToken,jdbcType=VARCHAR},
state = #{state,jdbcType=VARCHAR},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{lastLoginIp,jdbcType=VARCHAR},
register_ip = #{registerIp,jdbcType=VARCHAR},
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
weixin_unionid = #{weixinUnionid,jdbcType=VARCHAR},
qq_openid = #{qqOpenid,jdbcType=VARCHAR},
qq_unionid = #{qqUnionid,jdbcType=VARCHAR},
os = #{os,jdbcType=VARCHAR},
osVersion = #{osversion,jdbcType=VARCHAR},
app = #{app,jdbcType=VARCHAR},
imei = #{imei,jdbcType=VARCHAR},
channel = #{channel,jdbcType=VARCHAR},
linkedme_channel = #{linkedmeChannel,jdbcType=VARCHAR},
isp_type = #{ispType,jdbcType=VARCHAR},
net_type = #{netType,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
device_id = #{deviceId,jdbcType=VARCHAR},
app_version = #{appVersion,jdbcType=VARCHAR},
acc_block_start_time = #{accBlockStartTime,jdbcType=TIMESTAMP},
acc_block_end_time = #{accBlockEndTime,jdbcType=TIMESTAMP},
device_block_start_time = #{deviceBlockStartTime,jdbcType=TIMESTAMP},
device_block_end_time = #{deviceBlockEndTime,jdbcType=TIMESTAMP},
sign_time = #{signTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where uid = #{uid,jdbcType=BIGINT}
update account
set phone = #{phone,jdbcType=VARCHAR},
erban_no = #{erbanNo,jdbcType=BIGINT},
password = #{password,jdbcType=VARCHAR},
netease_token = #{neteaseToken,jdbcType=VARCHAR},
state = #{state,jdbcType=VARCHAR},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{lastLoginIp,jdbcType=VARCHAR},
register_ip = #{registerIp,jdbcType=VARCHAR},
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
weixin_unionid = #{weixinUnionid,jdbcType=VARCHAR},
qq_openid = #{qqOpenid,jdbcType=VARCHAR},
qq_unionid = #{qqUnionid,jdbcType=VARCHAR},
os = #{os,jdbcType=VARCHAR},
osVersion = #{osversion,jdbcType=VARCHAR},
app = #{app,jdbcType=VARCHAR},
imei = #{imei,jdbcType=VARCHAR},
channel = #{channel,jdbcType=VARCHAR},
linkedme_channel = #{linkedmeChannel,jdbcType=VARCHAR},
isp_type = #{ispType,jdbcType=VARCHAR},
net_type = #{netType,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
device_id = #{deviceId,jdbcType=VARCHAR},
app_version = #{appVersion,jdbcType=VARCHAR},
acc_block_start_time = #{accBlockStartTime,jdbcType=TIMESTAMP},
acc_block_end_time = #{accBlockEndTime,jdbcType=TIMESTAMP},
device_block_start_time = #{deviceBlockStartTime,jdbcType=TIMESTAMP},
device_block_end_time = #{deviceBlockEndTime,jdbcType=TIMESTAMP},
sign_time = #{signTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where uid = #{uid,jdbcType=BIGINT}
uid, phone, erban_no, password, netease_token, state, last_login_time, last_login_ip,
register_ip, weixin_openid, weixin_unionid, qq_openid, qq_unionid, os, osVersion,
app, imei, channel, linkedme_channel, isp_type, net_type, model, device_id, app_version,
acc_block_start_time, acc_block_end_time, device_block_start_time, device_block_end_time,
sign_time, update_time