insert into owner_app_user(
id_card,open_id,link,remark,user_id,app_type,app_user_name,nickname,headimgurl,community_name,state,app_user_id,
community_id,app_type_cd,member_id,room_id,room_name,owner_type_cd
) values (
#{idCard},#{openId},#{link},#{remark},#{userId},#{appType},#{appUserName},#{nickname},#{headimgurl},#{communityName},#{state},#{appUserId},
#{communityId},#{appTypeCd},#{memberId},#{roomId},#{roomName},#{ownerTypeCd}
)
update owner_app_user t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.id_card= #{idCard}
, t.open_id= #{openId}
, t.link= #{link}
, t.remark= #{remark}
, t.user_id= #{userId}
, t.app_type= #{appType}
, t.app_user_name= #{appUserName}
, t.nickname= #{nickname}
, t.headimgurl= #{headimgurl}
, t.community_name= #{communityName}
, t.state= #{state}
, t.community_id= #{communityId}
, t.app_type_cd= #{appTypeCd}
, t.member_id= #{memberId}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
, t.owner_type_cd= #{ownerTypeCd}
where 1=1
and t.app_user_id= #{appUserId}