@staticmethod
def retrieve_node(node_uid):
    """
        通过node_uid 获取node及该节点类型
        """
    from oneid_meta.models import Dept, Group
    if node_uid.startswith(Dept.NODE_PREFIX):
        uid = node_uid.replace(Dept.NODE_PREFIX, '', 1)
        return Dept.valid_objects.filter(uid=uid).first(), 'dept'
    if node_uid.startswith(Group.NODE_PREFIX):
        uid = node_uid.replace(Group.NODE_PREFIX, '', 1)
        return Group.valid_objects.filter(uid=uid).first(), 'group'
    return None, ''
