select user_id, project_id, status, user_type,com_id,is_active from sys_user_ext insert into sys_user_ext user_id, project_id, status, user_type, com_id, is_active, #{userId}, #{projectId}, #{status}, #{userType}, #{comId}, #{isActive}, update sys_user_ext project_id = #{projectId}, status = #{status}, user_type = #{userType}, com_id = #{comId}, is_active = #{isActive}, where user_id = #{userId} delete from sys_user_ext where user_id = #{userId} and project_id=#{projectId} update sys_user_ext set is_active=0 where user_id=#{userId} and com_id=#{comId} update sys_user_ext set is_active=1 where user_id=#{userId} and com_id=#{comId} and project_id=#{projectId}