update cm_mall_operation_user
set openid = #{openId}
where userID = #{userId}
update cm_mall_operation_user
set unionId = #{unionId}
where userID = #{userId}
update cm_mall_operation_user
set unionId = #{unionId},
openId = #{openId},
nickName = #{nickName},
headimgurl = #{avatarUrl},
status = #{status},
clubId = #{clubId},
shopId = null,
shopId = #{shopId},
clubId = null,
userType = #{userType}
where id = #{id}
update cm_mall_operation_user
set unionId = #{unionId},
openId = #{openId},
nickName = #{nickName},
bindTime = #{bindTime},
updateTime = #{updateTime},
status = #{status},
userType = #{userType},
clubId = #{clubId},
shopId = null,
shopId = #{shopId},
clubId = null,
delFlag = #{delFlag}
where id = #{id}
insert into cm_mall_operation_user
userOrganizeID,
userID,
userType,
shopID,
clubID,
account,
mobile,
linkName,
headimgurl,
invitationCode,
`status`,
nickName,
unionId,
openid,
crmOpenid,
pcOpenid,
invitationCodeTime,
bindTime,
updateTime,
addTime,
delFlag,
#{organizeId},
#{userId},
#{userType},
#{shopId},
#{clubId},
#{account},
#{mobile},
#{linkName},
#{invitationCode},
#{status},
#{nickName},
#{unionId},
#{openId},
#{crmOpenId},
#{pcOpenId},
#{invitationCodeTime},
#{bindTime},
#{updateTime},
#{addTime},
#{delFlag},
SELECT LAST_INSERT_ID()
update cm_mall_operation_user
userOrganizeID = #{organizeId},
userID = #{userId},
userType = #{userType},
shopID = #{shopId},
clubID = #{clubId},
account = #{account},
mobile = #{mobile},
linkName = #{linkName},
headimgurl = #{avatarUrl},
invitationCode = #{invitationCode},
`status` = #{status},
nickName = #{nickName},
unionId = #{unionId},
openid = #{openId},
crmOpenid = #{crmOpenId},
pcOpenid = #{pcOpenId},
invitationCodeTime = #{invitationCodeTime},
bindTime = #{bindTime},
updateTime = #{updateTime},
addTime = #{addTime},
delFlag = #{delFlag},
where id = #{id}