select client_id, user_id, open_id from auth_client_user
and client_id = #{clientId}
and user_id = #{userId}
and open_id = #{openId}
where client_id = #{clientId}
insert into auth_client_user client_id, user_id, open_id, #{clientId}, #{userId}, #{openId},
update auth_client_user user_id = #{userId}, open_id = #{openId}, where client_id = #{clientId}
delete from auth_client_user where client_id = #{clientId}
delete from auth_client_user where client_id in #{clientId}