INSERT INTO xhpc_app_user
app_user_id,
phone,
weixin_open_id,
alipay_open_id,
weixin_login,
alipay_login,
avatar,
tenant_id,
balance,
password,
status,
is_refund_application,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
soc
#{appUserId},
#{phone},
#{weixinOpenId},
#{alipayOpenId},
#{weixinLogin},
#{alipayLogin},
#{avatar},
#{tenantId},
#{balance},
#{password},
#{status},
#{isRefundApplication},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{soc}
UPDATE xhpc_app_user
phone = #{phone},
weixin_open_id = #{weixinOpenId},
alipay_open_id = #{alipayOpenId},
weixin_login = #{weixinLogin},
alipay_login = #{alipayLogin},
avatar = #{avatar},
balance = #{balance},
password = #{password},
status = #{status},
is_refund_application = #{isRefundApplication},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
soc = #{soc},
is_refund = #{isRefund},
soc_protect = #{socProtect},
WHERE app_user_id = #{appUserId}
update xhpc_app_user set del_flag = 2 where app_user_id = #{appUserId}
update xhpc_app_user set is_refund=#{isRefund} where app_user_id=#{userId}
INSERT INTO xhpc_user_login
app_user_id,
account,
user_type,
open_id,
type,
status,
tenant_id,
create_time,
#{appUserId},
#{account},
#{userType},
#{openId},
#{type},
#{status},
#{tenantId},
#{createTime},
UPDATE xhpc_customers_personnel
weixin_open_id = #{weixinOpenId},
alipay_open_id = #{alipayOpenId},
weixin_login = #{weixinLogin},
alipay_login = #{alipayLogin},
WHERE customers_personnel_id = #{appUserId}